Basics
Guides
API Reference
Basics
Guides
API Reference
[13:7] extends: object
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.
GTlsBackend (Handle = null)
Creates a new
TlsBackendby wrapping a native handle or another wrapper.
Handle is the native handle or another wrapper whose handle to adopt.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.get_certificate_type ()
Gets the #GType of @backend's #GTlsCertificate implementation.
the #GType of @backend's #GTlsCertificate implementation..get_client_connection_type ()
Gets the #GType of @backend's #GTlsClientConnection implementation.
the #GType of @backend's #GTlsClientConnection implementation..get_default_database ()
Gets the default #GTlsDatabase used to verify TLS connections.
the default database, which should be unreffed when done..get_dtls_client_connection_type ()
Gets the #GType of @backend’s #GDtlsClientConnection implementation.
the #GType of @backend’s #GDtlsClientConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS..get_dtls_server_connection_type ()
Gets the #GType of @backend’s #GDtlsServerConnection implementation.
the #GType of @backend’s #GDtlsServerConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS..get_file_database_type ()
Gets the #GType of @backend's #GTlsFileDatabase implementation.
the #GType of backend's #GTlsFileDatabase implementation..get_server_connection_type ()
Gets the #GType of @backend's #GTlsServerConnection implementation.
the #GType of @backend's #GTlsServerConnection implementation..set_default_database (object database)
Set the default #GTlsDatabase used to verify TLS connections Any subsequent call to g_tls_backend_get_default_database() 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 g_tls_backend_set_default_database() had never been called.
database is the #GTlsDatabase.None.supports_dtls ()
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
whether DTLS is supported.supports_tls ()
Checks if TLS is supported; if this returns %FALSE for the default #GTlsBackend, it means no "real" TLS backend is available.
whether or not TLS is supported.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.