gi-gio-2.0.18: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.TlsBackend

Contents

Description

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

Since: 2.28

Synopsis

Exported types

newtype TlsBackend Source #

Memory-managed wrapper type.

class GObject o => IsTlsBackend o Source #

Type class for types which can be safely cast to TlsBackend, for instance with toTlsBackend.

toTlsBackend :: (MonadIO m, IsTlsBackend o) => o -> m TlsBackend Source #

Cast to TlsBackend, for types for which this is known to be safe. For general casts, use castTo.

Methods

getCertificateType

tlsBackendGetCertificateType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend's TlsCertificate implementation.

Gets the GType of backend's TlsCertificate implementation.

Since: 2.28

getClientConnectionType

tlsBackendGetClientConnectionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend's TlsClientConnection implementation.

Gets the GType of backend's TlsClientConnection implementation.

Since: 2.28

getDefault

tlsBackendGetDefault Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m TlsBackend

Returns: a TlsBackend

Gets the default TlsBackend for the system.

Since: 2.28

getDefaultDatabase

tlsBackendGetDefaultDatabase Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m TlsDatabase

Returns: the default database, which should be unreffed when done.

Gets the default TlsDatabase used to verify TLS connections.

Since: 2.30

getDtlsClientConnectionType

tlsBackendGetDtlsClientConnectionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend’s DtlsClientConnection implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.

Gets the GType of backend’s DtlsClientConnection implementation.

Since: 2.48

getDtlsServerConnectionType

tlsBackendGetDtlsServerConnectionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend’s DtlsServerConnection implementation, or G_TYPE_INVALID if this backend doesn’t support DTLS.

Gets the GType of backend’s DtlsServerConnection implementation.

Since: 2.48

getFileDatabaseType

tlsBackendGetFileDatabaseType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend's TlsFileDatabase implementation.

Gets the GType of backend's TlsFileDatabase implementation.

Since: 2.30

getServerConnectionType

tlsBackendGetServerConnectionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m GType

Returns: the GType of backend's TlsServerConnection implementation.

Gets the GType of backend's TlsServerConnection implementation.

Since: 2.28

supportsDtls

tlsBackendSupportsDtls Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m Bool

Returns: whether DTLS is supported

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

Since: 2.48

supportsTls

tlsBackendSupportsTls Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsBackend a) 
=> a

backend: the TlsBackend

-> m Bool

Returns: whether or not TLS is supported

Checks if TLS is supported; if this returns False for the default TlsBackend, it means no "real" TLS backend is available.

Since: 2.28