gio.tls_database

Module for [TlsDatabase] class

Types 3

[gio.tls_database.TlsDatabase] 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 [gio.tls_database.TlsDatabase] 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 [gio.tls_database.TlsDatabase]. It is used internally by [gio.tls_connection.TlsConnection].

Methods
GType _gType() @property
TlsDatabase self()Returns `this`, for use in `with` statements.
TlsDatabaseGidBuilder builder()Get builder for [gio.tls_database.TlsDatabase] Returns: New builder object
string createCertificateHandle(gio.tls_certificate.TlsCertificate certificate)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 f...
void lookupCertificateForHandleAsync(string handle, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseLookupFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously look up a certificate by its handle in the database. See [gio.tls_database.TlsDatabase.lookupCertificateForHandle] for more information.
gio.tls_certificate.TlsCertificate lookupCertificateForHandleFinish(gio.async_result.AsyncResult result)Finish an asynchronous lookup of a certificate by its handle. See [gio.tls_database.TlsDatabase.lookupCertificateForHandle] for more information.
gio.tls_certificate.TlsCertificate lookupCertificateIssuer(gio.tls_certificate.TlsCertificate certificate, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseLookupFlags flags, gio.cancellable.Cancellable cancellable = null)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.
void lookupCertificateIssuerAsync(gio.tls_certificate.TlsCertificate certificate, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseLookupFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously look up the issuer of certificate in the database. See [gio.tls_database.TlsDatabase.lookupCertificateIssuer] for more information.
gio.tls_certificate.TlsCertificate lookupCertificateIssuerFinish(gio.async_result.AsyncResult result)Finish an asynchronous lookup issuer operation. See [gio.tls_database.TlsDatabase.lookupCertificateIssuer] for more information.
gio.tls_certificate.TlsCertificate[] lookupCertificatesIssuedBy(ubyte[] issuerRawDn, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseLookupFlags flags, gio.cancellable.Cancellable cancellable = null)Look up certificates issued by this issuer in the database.
void lookupCertificatesIssuedByAsync(ubyte[] issuerRawDn, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseLookupFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously look up certificates issued by this issuer in the database. See [gio.tls_database.TlsDatabase.lookupCertificatesIssuedBy] for more information.
gio.tls_certificate.TlsCertificate[] lookupCertificatesIssuedByFinish(gio.async_result.AsyncResult result)Finish an asynchronous lookup of certificates. See [gio.tls_database.TlsDatabase.lookupCertificatesIssuedBy] for more information.
gio.types.TlsCertificateFlags verifyChain(gio.tls_certificate.TlsCertificate chain, string purpose, gio.socket_connectable.SocketConnectable identity, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseVerifyFlags flags, gio.cancellable.Cancellable cancellable = null)Determines the validity of a certificate chain, outside the context of a TLS session.
void verifyChainAsync(gio.tls_certificate.TlsCertificate chain, string purpose, gio.socket_connectable.SocketConnectable identity, gio.tls_interaction.TlsInteraction interaction, gio.types.TlsDatabaseVerifyFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. See [gio.tls_database.TlsDatabase.verifyChain] for more information.
gio.types.TlsCertificateFlags verifyChainFinish(gio.async_result.AsyncResult result)Finish an asynchronous verify chain operation. See [gio.tls_database.TlsDatabase.verifyChain] for more information.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gio.tls_database.TlsDatabase]