package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gio/Ocgtk_gio/Gio/Wrappers/Tls_backend/index.html

Module Wrappers.Tls_backend

type t = [ `tls_backend ] Gobject.obj
val from_gobject : 'a Gobject.obj -> t
val supports_tls : t -> bool

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

val supports_dtls : t -> bool

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

val set_default_database : t -> [ `tls_database | `object_ ] Gobject.obj option -> unit

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.

val get_server_connection_type : t -> Gobject.Type.t

Gets the #GType of @backend's #GTlsServerConnection implementation.

val get_file_database_type : t -> Gobject.Type.t

Gets the #GType of @backend's #GTlsFileDatabase implementation.

val get_dtls_server_connection_type : t -> Gobject.Type.t

Gets the #GType of @backend’s #GDtlsServerConnection implementation.

val get_dtls_client_connection_type : t -> Gobject.Type.t

Gets the #GType of @backend’s #GDtlsClientConnection implementation.

val get_default_database : t -> [ `tls_database | `object_ ] Gobject.obj

Gets the default #GTlsDatabase used to verify TLS connections.

val get_client_connection_type : t -> Gobject.Type.t

Gets the #GType of @backend's #GTlsClientConnection implementation.

val get_certificate_type : t -> Gobject.Type.t

Gets the #GType of @backend's #GTlsCertificate implementation.