implementation.
gio.tls_backend_mixin
Module for [TlsBackend] interface mixin
Templates 2
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.
Gets the #GType of backend's #GTlsCertificate implementation.
Returns
Gets the #GType of backend's #GTlsClientConnection implementation.
Returns
implementation.
Gets the default #GTlsDatabase used to verify TLS connections.
Returns
unreffed when done.
Gets the #GType of backend’s #GDtlsClientConnection implementation.
Returns
implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.
Gets the #GType of backend’s #GDtlsServerConnection implementation.
Returns
implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.
Gets the #GType of backend's #GTlsFileDatabase implementation.
Returns
Gets the #GType of backend's #GTlsServerConnection implementation.
Returns
implementation.
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
database | the #GTlsDatabase |
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Returns
Checks if TLS is supported; if this returns false for the default #GTlsBackend, it means no "real" TLS backend is available.