![]() |
![]() |
![]() |
GIO Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Properties |
#include <gio/gio.h> GTlsFileDatabase; struct GTlsFileDatabaseInterface; GTlsDatabase * g_tls_file_database_new (const gchar *anchors
,GError **error
);
GTlsFileDatabase is implemented by GTlsDatabase objects which load their certificate information from a file. It is in interface which TLS library specific subtypes implement.
typedef struct _GTlsFileDatabase GTlsFileDatabase;
Implemented by a GTlsDatabase which allows you to load certificates from a file.
Since 2.30
struct GTlsFileDatabaseInterface { GTypeInterface g_iface; };
Provides an interface for GTlsFileDatabase implementations.
GTypeInterface |
The parent interface. |
GTlsDatabase * g_tls_file_database_new (const gchar *anchors
,GError **error
);
Creates a new GTlsFileDatabase which uses anchor certificate authorities
in anchors
to verify certificate chains.
The certificates in anchors
must be PEM encoded.
|
filename of anchor certificate authorities. |
|
GError for error reporting, or NULL to ignore. |
Returns : |
the new
GTlsFileDatabase, or NULL on error. [transfer full][type GTlsFileDatabase]
|
Since 2.30
"anchors"
property"anchors" gchar* : Read / Write / Construct
The path to a file containing PEM encoded certificate authority
root anchors. The certificates in this file will be treated as
root authorities for the purpose of verifying other certificates
via the g_tls_database_verify_chain()
operation.
Default value: NULL
Since 2.30