TlsDatabase
GTlsDatabase
is used to look up certificates and other information from a certificate or key store. It is an abstract base class which TLS library specific subtypes override.
A GTlsDatabase
may be accessed from multiple threads by the TLS backend. All implementations are required to be fully thread-safe.
Most common client applications will not directly interact with GTlsDatabase
. It is used internally by class@Gio.TlsConnection.
Skipped during bindings generation
parameter
issuer_raw_dn
: GLib.ByteArray parameter of type guint8 is not supportedparameter
issuer_raw_dn
: GLib.ByteArray parameter of type guint8 is not supported
Since
2.30
Constructors
Functions
Create a handle string for the certificate. The database will only be able to create a handle for certificates that originate from the database. In cases where the database cannot create a handle for a certificate, null will be returned.
Look up a certificate by its handle.
Asynchronously look up a certificate by its handle in the database. See g_tls_database_lookup_certificate_for_handle() for more information.
Finish an asynchronous lookup of a certificate by its handle. See g_tls_database_lookup_certificate_for_handle() for more information.
Look up the issuer of @certificate in the database. The #GTlsCertificate:issuer property of @certificate is not modified, and the two certificates are not hooked into a chain.
Asynchronously look up the issuer of @certificate in the database. See g_tls_database_lookup_certificate_issuer() for more information.
Finish an asynchronous lookup issuer operation. See g_tls_database_lookup_certificate_issuer() for more information.
Finish an asynchronous lookup of certificates. See g_tls_database_lookup_certificates_issued_by() for more information.
Determines the validity of a certificate chain, outside the context of a TLS session.
Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. See g_tls_database_verify_chain() for more information.
Finish an asynchronous verify chain operation. See g_tls_database_verify_chain() for more information.