TlsBackendT

TLS (Transport Layer Security, aka SSL) and DTLS backend. This is an internal type used to coordinate the different classes implemented by a TLS backend.

Members

Functions

getCertificateType
gobject.types.GType getCertificateType()

Gets the #GType of backend's #GTlsCertificate implementation.

getClientConnectionType
gobject.types.GType getClientConnectionType()

Gets the #GType of backend's #GTlsClientConnection implementation.

getDefaultDatabase
gio.tls_database.TlsDatabase getDefaultDatabase()

Gets the default #GTlsDatabase used to verify TLS connections.

getDtlsClientConnectionType
gobject.types.GType getDtlsClientConnectionType()

Gets the #GType of backend’s #GDtlsClientConnection implementation.

getDtlsServerConnectionType
gobject.types.GType getDtlsServerConnectionType()

Gets the #GType of backend’s #GDtlsServerConnection implementation.

getFileDatabaseType
gobject.types.GType getFileDatabaseType()

Gets the #GType of backend's #GTlsFileDatabase implementation.

getServerConnectionType
gobject.types.GType getServerConnectionType()

Gets the #GType of backend's #GTlsServerConnection implementation.

setDefaultDatabase
void setDefaultDatabase(gio.tls_database.TlsDatabase database)

Set the default #GTlsDatabase used to verify TLS connections

supportsDtls
bool supportsDtls()

Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.

supportsTls
bool supportsTls()

Checks if TLS is supported; if this returns false for the default #GTlsBackend, it means no "real" TLS backend is available.