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 self’s
<GTlsCertificate> implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of self’s
<GTlsCertificate> implementation.
Gets the GType of self’s
<GTlsClientConnection> implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of self’s
<GTlsClientConnection> implementation.
Gets the default <GTlsBackend> for the system.
Returned: a <GTlsBackend>.
a <GTlsBackend>, which will be a dummy object
if no TLS backend is available
Gets the default <GTlsDatabase> used to verify
TLS connections.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a <GTlsDatabase>.
the default database, which should be unreffed when done.
Gets the GType of self’s
<GDtlsClientConnection>
implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of self’s
<GDtlsClientConnection>
implementation, or G_TYPE_INVALID if this backend doesn’t support
DTLS.
Gets the GType of self’s
<GDtlsServerConnection>
implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of self’s
<GDtlsServerConnection>
implementation, or G_TYPE_INVALID if this backend doesn’t support
DTLS.
Gets the GType of self’s
<GTlsFileDatabase> implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of backend’s
<GTlsFileDatabase> implementation.
Gets the GType of self’s
<GTlsServerConnection> implementation.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a class, or a GType number.
the GType of self’s
<GTlsServerConnection> implementation.
Set the default <GTlsDatabase> used to verify
TLS connections
Any subsequent call to tls-backend:get-default-database will return the
database set in this call. Existing databases and connections are not
modified.
Setting a #f default database will reset to using the system
default database as if tls-backend:set-default-database had never been
called.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Passed, or left out: a <GTlsDatabase>, or
#f.
the <GTlsDatabase>
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a boolean.
whether DTLS is supported
Checks if TLS is supported; if this returns #f for the default
<GTlsBackend>, it means no "real" TLS backend
is available.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a boolean.
whether or not TLS is supported
Gets the default <GTlsDatabase> used to verify
TLS connections.
To override it in a new class, give register-type #:vfuncs
`((get-default-database . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call: a class that implements
<GTlsBackend>, or its GType number.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a <GTlsDatabase>.
the default database, which should be unreffed when done.
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
To override it in a new class, give register-type #:vfuncs
`((supports-dtls . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call: a class that implements
<GTlsBackend>, or its GType number.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a boolean.
whether DTLS is supported
Checks if TLS is supported; if this returns #f for the default
<GTlsBackend>, it means no "real" TLS backend
is available.
To override it in a new class, give register-type #:vfuncs
`((supports-tls . ,procedure)). The procedure is called as
(procedure self) ⇒ %return.
Passed: the class whose implementation to call: a class that implements
<GTlsBackend>, or its GType number.
Passed: a <GTlsBackend>.
the <GTlsBackend>
Returned: a boolean.
whether or not TLS is supported