Interface

GioTlsBackend

Description [src]

interface Gio.TlsBackend : GObject.Object

TLS (Transport Layer Security, aka SSL) and DTLS backend.

Available since:2.28

Prerequisite

In order to implement TlsBackend, your type must inherit from GObject.

Functions

g_tls_backend_get_default

Gets the default GTlsBackend for the system.

Instance methods

g_tls_backend_get_certificate_type

Gets the GType of backends GTlsCertificate implementation.

Available since: 2.28

g_tls_backend_get_client_connection_type

Gets the GType of backends GTlsClientConnection implementation.

Available since: 2.28

g_tls_backend_get_default_database

Gets the default GTlsDatabase used to verify TLS connections.

Available since: 2.30

g_tls_backend_get_dtls_client_connection_type

Gets the GType of backend’s GDtlsClientConnection implementation.

Available since: 2.48

g_tls_backend_get_dtls_server_connection_type

Gets the GType of backend’s GDtlsServerConnection implementation.

Available since: 2.48

g_tls_backend_get_file_database_type

Gets the GType of backends GTlsFileDatabase implementation.

Available since: 2.30

g_tls_backend_get_server_connection_type

Gets the GType of backends GTlsServerConnection implementation.

Available since: 2.28

g_tls_backend_set_default_database

Set the default GTlsDatabase used to verify TLS connections.

Available since: 2.60

g_tls_backend_supports_dtls

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

Available since: 2.48

g_tls_backend_supports_tls

Checks if TLS is supported; if this returns FALSE for the default GTlsBackend, it means no “real” TLS backend is available.

Available since: 2.28

Interface structure

struct GioTlsBackendInterface {
  GTypeInterface g_iface;
  gboolean (* supports_tls) (
    GTlsBackend* backend
  );
  GType (* get_certificate_type) (
void
  );
  GType (* get_client_connection_type) (
void
  );
  GType (* get_server_connection_type) (
void
  );
  GType (* get_file_database_type) (
void
  );
  GTlsDatabase* (* get_default_database) (
    GTlsBackend* backend
  );
  gboolean (* supports_dtls) (
    GTlsBackend* backend
  );
  GType (* get_dtls_client_connection_type) (
void
  );
  GType (* get_dtls_server_connection_type) (
void
  );
  
}
Interface members
g_iface
GTypeInterface
 

The parent interface.

supports_tls
gboolean (* supports_tls) (
    GTlsBackend* backend
  )
 No description available.
get_certificate_type
GType (* get_certificate_type) (
void
  )
 No description available.
get_client_connection_type
GType (* get_client_connection_type) (
void
  )
 No description available.
get_server_connection_type
GType (* get_server_connection_type) (
void
  )
 No description available.
get_file_database_type
GType (* get_file_database_type) (
void
  )
 No description available.
get_default_database
GTlsDatabase* (* get_default_database) (
    GTlsBackend* backend
  )
 No description available.
supports_dtls
gboolean (* supports_dtls) (
    GTlsBackend* backend
  )
 No description available.
get_dtls_client_connection_type
GType (* get_dtls_client_connection_type) (
void
  )
 No description available.
get_dtls_server_connection_type
GType (* get_dtls_server_connection_type) (
void
  )
 No description available.

Virtual methods

Gio.TlsBackend.get_default_database

Gets the default GTlsDatabase used to verify TLS connections.

Gio.TlsBackend.supports_dtls

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

Gio.TlsBackend.supports_tls

Checks if TLS is supported; if this returns FALSE for the default GTlsBackend, it means no “real” TLS backend is available.