gio.tls_backend

Module for [TlsBackend] interface

Types 2

interfaceTlsBackend

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.

Methods
gio.tls_backend.TlsBackend getDefault()Gets the default #GTlsBackend for the system. Returns: a #GTlsBackend, which will be a dummy object if no TLS backend is available
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 `GTYPEINVALID` if this backend doesn’t support D...
gobject.types.GType getDtlsServerConnectionType()Gets the #GType of backend’s #GDtlsServerConnection implementation. Returns: the #GType of backend’s #GDtlsServerConnection implementation, or `GTYPEINVALID` if this backend doesn’t support D...
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
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