2.33 <GTlsBackend>

Interface: <GTlsBackend>

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.

Procedures

Method: tls-backend:get-certificate-type self ⇒ %return
Method: get-certificate-type self ⇒ %return

Gets the GType of self’s <GTlsCertificate> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a class, or a GType number.

the GType of self’s <GTlsCertificate> implementation.

Method: tls-backend:get-client-connection-type self ⇒ %return
Method: get-client-connection-type self ⇒ %return

Gets the GType of self’s <GTlsClientConnection> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a class, or a GType number.

the GType of self’s <GTlsClientConnection> implementation.

Procedure: tls-backend:get-default ⇒ %return

Gets the default <GTlsBackend> for the system.

%return

Returned: a <GTlsBackend>.

a <GTlsBackend>, which will be a dummy object if no TLS backend is available

Method: tls-backend:get-default-database self ⇒ %return
Method: get-default-database self ⇒ %return

Gets the default <GTlsDatabase> used to verify TLS connections.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a <GTlsDatabase>.

the default database, which should be unreffed when done.

Method: tls-backend:get-dtls-client-connection-type self ⇒ %return
Method: get-dtls-client-connection-type self ⇒ %return

Gets the GType of self’s <GDtlsClientConnection> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

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.

Method: tls-backend:get-dtls-server-connection-type self ⇒ %return
Method: get-dtls-server-connection-type self ⇒ %return

Gets the GType of self’s <GDtlsServerConnection> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

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.

Method: tls-backend:get-file-database-type self ⇒ %return
Method: get-file-database-type self ⇒ %return

Gets the GType of self’s <GTlsFileDatabase> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a class, or a GType number.

the GType of backend’s <GTlsFileDatabase> implementation.

Method: tls-backend:get-server-connection-type self ⇒ %return
Method: get-server-connection-type self ⇒ %return

Gets the GType of self’s <GTlsServerConnection> implementation.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a class, or a GType number.

the GType of self’s <GTlsServerConnection> implementation.

Method: tls-backend:set-default-database self [database]
Method: set-default-database self [database]

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.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

database

Passed, or left out: a <GTlsDatabase>, or #f.

the <GTlsDatabase>

Method: tls-backend:supports-dtls? self ⇒ %return
Method: supports-dtls? self ⇒ %return

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

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a boolean.

whether DTLS is supported

Method: tls-backend:supports-tls? self ⇒ %return
Method: supports-tls? self ⇒ %return

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

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a boolean.

whether or not TLS is supported

Virtual methods

Virtual method: tls-backend:do-get-default-database implementor self ⇒ %return

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.

implementor

Passed: the class whose implementation to call: a class that implements <GTlsBackend>, or its GType number.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a <GTlsDatabase>.

the default database, which should be unreffed when done.

Virtual method: tls-backend:do-supports-dtls implementor self ⇒ %return

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.

implementor

Passed: the class whose implementation to call: a class that implements <GTlsBackend>, or its GType number.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a boolean.

whether DTLS is supported

Virtual method: tls-backend:do-supports-tls implementor self ⇒ %return

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.

implementor

Passed: the class whose implementation to call: a class that implements <GTlsBackend>, or its GType number.

self

Passed: a <GTlsBackend>.

the <GTlsBackend>

%return

Returned: a boolean.

whether or not TLS is supported