gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.TlsBackend

Description

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.

Since: 2.28

Synopsis

Exported types

newtype TlsBackend Source #

Memory-managed wrapper type.

Instances

Instances details
Eq TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

GObject TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

ManagedPtrNewtype TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

TypedObject TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

Methods

glibType :: IO GType #

HasParentTypes TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

HasAttributeList TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

(info ~ ResolveTlsBackendMethod t TlsBackend, OverloadedMethod info TlsBackend p, HasField t TlsBackend p) => HasField (t :: Symbol) TlsBackend (p :: Type) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

Methods

getField :: TlsBackend -> p #

(info ~ ResolveTlsBackendMethod t TlsBackend, OverloadedMethodInfo info TlsBackend) => IsLabel t (MethodProxy info TlsBackend) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

(info ~ ResolveTlsBackendMethod t TlsBackend, OverloadedMethod info TlsBackend p) => IsLabel t (TlsBackend -> p) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

Methods

fromLabel :: TlsBackend -> p #

IsGValue (Maybe TlsBackend) Source #

Convert TlsBackend to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Interfaces.TlsBackend

type AttributeList TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

type ParentTypes TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

type SignalList TlsBackend Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

class (GObject o, IsDescendantOf TlsBackend o) => IsTlsBackend o Source #

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

Instances

Instances details
(GObject o, IsDescendantOf TlsBackend o) => IsTlsBackend o Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsBackend

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

type family ResolveTlsBackendMethod (t :: Symbol) o where ... Source #

Equations

ResolveTlsBackendMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveTlsBackendMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveTlsBackendMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveTlsBackendMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveTlsBackendMethod "getv" o = ObjectGetvMethodInfo 
ResolveTlsBackendMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveTlsBackendMethod "notify" o = ObjectNotifyMethodInfo 
ResolveTlsBackendMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveTlsBackendMethod "ref" o = ObjectRefMethodInfo 
ResolveTlsBackendMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveTlsBackendMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveTlsBackendMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveTlsBackendMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveTlsBackendMethod "supportsDtls" o = TlsBackendSupportsDtlsMethodInfo 
ResolveTlsBackendMethod "supportsTls" o = TlsBackendSupportsTlsMethodInfo 
ResolveTlsBackendMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveTlsBackendMethod "unref" o = ObjectUnrefMethodInfo 
ResolveTlsBackendMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveTlsBackendMethod "getCertificateType" o = TlsBackendGetCertificateTypeMethodInfo 
ResolveTlsBackendMethod "getClientConnectionType" o = TlsBackendGetClientConnectionTypeMethodInfo 
ResolveTlsBackendMethod "getData" o = ObjectGetDataMethodInfo 
ResolveTlsBackendMethod "getDefaultDatabase" o = TlsBackendGetDefaultDatabaseMethodInfo 
ResolveTlsBackendMethod "getDtlsClientConnectionType" o = TlsBackendGetDtlsClientConnectionTypeMethodInfo 
ResolveTlsBackendMethod "getDtlsServerConnectionType" o = TlsBackendGetDtlsServerConnectionTypeMethodInfo 
ResolveTlsBackendMethod "getFileDatabaseType" o = TlsBackendGetFileDatabaseTypeMethodInfo 
ResolveTlsBackendMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveTlsBackendMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveTlsBackendMethod "getServerConnectionType" o = TlsBackendGetServerConnectionTypeMethodInfo 
ResolveTlsBackendMethod "setData" o = ObjectSetDataMethodInfo 
ResolveTlsBackendMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveTlsBackendMethod "setDefaultDatabase" o = TlsBackendSetDefaultDatabaseMethodInfo 
ResolveTlsBackendMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveTlsBackendMethod l o = MethodResolutionFailed l o :: Type 

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, which will be a dummy object if no TLS backend is available

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

setDefaultDatabase

tlsBackendSetDefaultDatabase Source #

Arguments

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

backend: the TlsBackend

-> Maybe b

database: the TlsDatabase

-> m () 

Set the default TlsDatabase used to verify TLS connections

Any subsequent call to tlsBackendGetDefaultDatabase will return the database set in this call. Existing databases and connections are not modified.

Setting a Nothing default database will reset to using the system default database as if tlsBackendSetDefaultDatabase had never been called.

Since: 2.60

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