gio.tls_backend_mixin

Module for [TlsBackend] interface mixin

Templates 2

tmplTlsBackendT()

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.

Functions
gobject.types.GType getCertificateType()

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

Returns

the #GType of backend's #GTlsCertificate

implementation.

gobject.types.GType getClientConnectionType()

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

Returns

the #GType of backend's #GTlsClientConnection

implementation.

gio.tls_database.TlsDatabase getDefaultDatabase()

Gets the default #GTlsDatabase used to verify TLS connections.

Returns

the default database, which should be

unreffed when done.

gobject.types.GType getDtlsClientConnectionType()

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

Returns

the #GType of backend’s #GDtlsClientConnection

implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.

gobject.types.GType getDtlsServerConnectionType()

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

Returns

the #GType of backend’s #GDtlsServerConnection

implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.

gobject.types.GType getFileDatabaseType()

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

Returns

the #GType of backend's #GTlsFileDatabase implementation.
gobject.types.GType getServerConnectionType()

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

Returns

the #GType of backend's #GTlsServerConnection

implementation.

void setDefaultDatabase(gio.tls_database.TlsDatabase database = null)

Set the default #GTlsDatabase used to verify TLS connections

Any subsequent call to [gio.tls_backend.TlsBackend.getDefaultDatabase] will return the database set in this call. Existing databases and connections are not modified.

Setting a null default database will reset to using the system default database as if [gio.tls_backend.TlsBackend.setDefaultDatabase] had never been called.

Parameters

databasethe #GTlsDatabase
bool supportsDtls()

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

Returns

whether DTLS is supported
bool supportsTls()

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

Returns

whether or not TLS is supported
tmplTlsBackendGidBuilderT()