GTlsFileDatabase is implemented by GTlsDatabase objects which load their certificate information from a file. It is an interface which TLS library specific subtypes implement.
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.
Since: 2.30
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.
“anchors” property“anchors” gchar *
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.
Flags: Read / Write / Construct
Default value: NULL
Since: 2.30