Module: Gio::TlsBackend

Defined in:
(unknown)

Overview

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

Instance Method Summary collapse

Instance Method Details

#certificate_typeGLib::Type

Gets the #GType of backend’s GTls::Certificate implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GTls::Certificate implementation.

#client_connection_typeGLib::Type

Gets the #GType of backend’s GTls::ClientConnection implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GTls::ClientConnection implementation.

#default_databaseGio::TlsDatabase

Gets the default GTls::Database used to verify TLS connections.

Returns:

  • (Gio::TlsDatabase)

    the default database, which should be unreffed when done.

#default_database=(database) ⇒ nil

Set the default GTls::Database 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 nil default database will reset to using the system default database as if g_tls_backend_set_default_database() had never been called.

Parameters:

Returns:

  • (nil)

#dtls_client_connection_typeGLib::Type

Gets the #GType of backend’s GDtls::ClientConnection implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GDtls::ClientConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS.

#dtls_server_connection_typeGLib::Type

Gets the #GType of backend’s GDtls::ServerConnection implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GDtls::ServerConnection implementation, or %G_TYPE_INVALID if this backend doesn’t support DTLS.

#file_database_typeGLib::Type

Gets the #GType of backend’s GTls::FileDatabase implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GTls::FileDatabase implementation.

#server_connection_typeGLib::Type

Gets the #GType of backend’s GTls::ServerConnection implementation.

Returns:

  • (GLib::Type)

    the #GType of backend’s GTls::ServerConnection implementation.

#supports_dtlsTrueClass

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

Returns:

  • (TrueClass)

    whether DTLS is supported

#supports_tlsTrueClass

Checks if TLS is supported; if this returns false for the default GTls::Backend, it means no “real” TLS backend is available.

Returns:

  • (TrueClass)

    whether or not TLS is supported