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

GI.Gio.Interfaces.TlsClientConnection

Description

GTlsClientConnection is the client-side subclass of TlsConnection, representing a client-side TLS connection.

Since: 2.28

Synopsis

Exported types

newtype TlsClientConnection Source #

Memory-managed wrapper type.

Instances

Instances details
Eq TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

GObject TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

ManagedPtrNewtype TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

TypedObject TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

Methods

glibType :: IO GType #

HasParentTypes TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

HasAttributeList TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

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

Defined in GI.Gio.Interfaces.TlsClientConnection

(info ~ ResolveTlsClientConnectionMethod t TlsClientConnection, OverloadedMethodInfo info TlsClientConnection) => IsLabel t (MethodProxy info TlsClientConnection) Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

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

Defined in GI.Gio.Interfaces.TlsClientConnection

IsGValue (Maybe TlsClientConnection) Source #

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

Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttributeList TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type ParentTypes TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type SignalList TlsClientConnection Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

class (GObject o, IsDescendantOf TlsClientConnection o) => IsTlsClientConnection o Source #

Type class for types which can be safely cast to TlsClientConnection, for instance with toTlsClientConnection.

Instances

Instances details
(GObject o, IsDescendantOf TlsClientConnection o) => IsTlsClientConnection o Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

toTlsClientConnection :: (MonadIO m, IsTlsClientConnection o) => o -> m TlsClientConnection Source #

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

Methods

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

Equations

ResolveTlsClientConnectionMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveTlsClientConnectionMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveTlsClientConnectionMethod "clearPending" o = IOStreamClearPendingMethodInfo 
ResolveTlsClientConnectionMethod "close" o = IOStreamCloseMethodInfo 
ResolveTlsClientConnectionMethod "closeAsync" o = IOStreamCloseAsyncMethodInfo 
ResolveTlsClientConnectionMethod "closeFinish" o = IOStreamCloseFinishMethodInfo 
ResolveTlsClientConnectionMethod "copySessionState" o = TlsClientConnectionCopySessionStateMethodInfo 
ResolveTlsClientConnectionMethod "emitAcceptCertificate" o = TlsConnectionEmitAcceptCertificateMethodInfo 
ResolveTlsClientConnectionMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveTlsClientConnectionMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveTlsClientConnectionMethod "getv" o = ObjectGetvMethodInfo 
ResolveTlsClientConnectionMethod "handshake" o = TlsConnectionHandshakeMethodInfo 
ResolveTlsClientConnectionMethod "handshakeAsync" o = TlsConnectionHandshakeAsyncMethodInfo 
ResolveTlsClientConnectionMethod "handshakeFinish" o = TlsConnectionHandshakeFinishMethodInfo 
ResolveTlsClientConnectionMethod "hasPending" o = IOStreamHasPendingMethodInfo 
ResolveTlsClientConnectionMethod "isClosed" o = IOStreamIsClosedMethodInfo 
ResolveTlsClientConnectionMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveTlsClientConnectionMethod "notify" o = ObjectNotifyMethodInfo 
ResolveTlsClientConnectionMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveTlsClientConnectionMethod "ref" o = ObjectRefMethodInfo 
ResolveTlsClientConnectionMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveTlsClientConnectionMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveTlsClientConnectionMethod "spliceAsync" o = IOStreamSpliceAsyncMethodInfo 
ResolveTlsClientConnectionMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveTlsClientConnectionMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveTlsClientConnectionMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveTlsClientConnectionMethod "unref" o = ObjectUnrefMethodInfo 
ResolveTlsClientConnectionMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveTlsClientConnectionMethod "getAcceptedCas" o = TlsClientConnectionGetAcceptedCasMethodInfo 
ResolveTlsClientConnectionMethod "getCertificate" o = TlsConnectionGetCertificateMethodInfo 
ResolveTlsClientConnectionMethod "getChannelBindingData" o = TlsConnectionGetChannelBindingDataMethodInfo 
ResolveTlsClientConnectionMethod "getCiphersuiteName" o = TlsConnectionGetCiphersuiteNameMethodInfo 
ResolveTlsClientConnectionMethod "getData" o = ObjectGetDataMethodInfo 
ResolveTlsClientConnectionMethod "getDatabase" o = TlsConnectionGetDatabaseMethodInfo 
ResolveTlsClientConnectionMethod "getInputStream" o = IOStreamGetInputStreamMethodInfo 
ResolveTlsClientConnectionMethod "getInteraction" o = TlsConnectionGetInteractionMethodInfo 
ResolveTlsClientConnectionMethod "getNegotiatedProtocol" o = TlsConnectionGetNegotiatedProtocolMethodInfo 
ResolveTlsClientConnectionMethod "getOutputStream" o = IOStreamGetOutputStreamMethodInfo 
ResolveTlsClientConnectionMethod "getPeerCertificate" o = TlsConnectionGetPeerCertificateMethodInfo 
ResolveTlsClientConnectionMethod "getPeerCertificateErrors" o = TlsConnectionGetPeerCertificateErrorsMethodInfo 
ResolveTlsClientConnectionMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveTlsClientConnectionMethod "getProtocolVersion" o = TlsConnectionGetProtocolVersionMethodInfo 
ResolveTlsClientConnectionMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveTlsClientConnectionMethod "getRehandshakeMode" o = TlsConnectionGetRehandshakeModeMethodInfo 
ResolveTlsClientConnectionMethod "getRequireCloseNotify" o = TlsConnectionGetRequireCloseNotifyMethodInfo 
ResolveTlsClientConnectionMethod "getServerIdentity" o = TlsClientConnectionGetServerIdentityMethodInfo 
ResolveTlsClientConnectionMethod "getUseSsl3" o = TlsClientConnectionGetUseSsl3MethodInfo 
ResolveTlsClientConnectionMethod "getUseSystemCertdb" o = TlsConnectionGetUseSystemCertdbMethodInfo 
ResolveTlsClientConnectionMethod "getValidationFlags" o = TlsClientConnectionGetValidationFlagsMethodInfo 
ResolveTlsClientConnectionMethod "setAdvertisedProtocols" o = TlsConnectionSetAdvertisedProtocolsMethodInfo 
ResolveTlsClientConnectionMethod "setCertificate" o = TlsConnectionSetCertificateMethodInfo 
ResolveTlsClientConnectionMethod "setData" o = ObjectSetDataMethodInfo 
ResolveTlsClientConnectionMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveTlsClientConnectionMethod "setDatabase" o = TlsConnectionSetDatabaseMethodInfo 
ResolveTlsClientConnectionMethod "setInteraction" o = TlsConnectionSetInteractionMethodInfo 
ResolveTlsClientConnectionMethod "setPending" o = IOStreamSetPendingMethodInfo 
ResolveTlsClientConnectionMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveTlsClientConnectionMethod "setRehandshakeMode" o = TlsConnectionSetRehandshakeModeMethodInfo 
ResolveTlsClientConnectionMethod "setRequireCloseNotify" o = TlsConnectionSetRequireCloseNotifyMethodInfo 
ResolveTlsClientConnectionMethod "setServerIdentity" o = TlsClientConnectionSetServerIdentityMethodInfo 
ResolveTlsClientConnectionMethod "setUseSsl3" o = TlsClientConnectionSetUseSsl3MethodInfo 
ResolveTlsClientConnectionMethod "setUseSystemCertdb" o = TlsConnectionSetUseSystemCertdbMethodInfo 
ResolveTlsClientConnectionMethod "setValidationFlags" o = TlsClientConnectionSetValidationFlagsMethodInfo 
ResolveTlsClientConnectionMethod l o = MethodResolutionFailed l o :: Type 

copySessionState

tlsClientConnectionCopySessionState Source #

Possibly copies session state from one connection to another, for use in TLS session resumption. This is not normally needed, but may be used when the same session needs to be used between different endpoints, as is required by some protocols, such as FTP over TLS. source should have already completed a handshake and, since TLS 1.3, it should have been used to read data at least once. conn should not have completed a handshake.

It is not possible to know whether a call to this function will actually do anything. Because session resumption is normally used only for performance benefit, the TLS backend might not implement this function. Even if implemented, it may not actually succeed in allowing conn to resume source's TLS session, because the server may not have sent a session resumption token to source, or it may refuse to accept the token from conn. There is no way to know whether a call to this function is actually successful.

Using this function is not required to benefit from session resumption. If the TLS backend supports session resumption, the session will be resumed automatically if it is possible to do so without weakening the privacy guarantees normally provided by TLS, without need to call this function. For example, with TLS 1.3, a session ticket will be automatically copied from any TlsClientConnection that has previously received session tickets from the server, provided a ticket is available that has not previously been used for session resumption, since session ticket reuse would be a privacy weakness. Using this function causes the ticket to be copied without regard for privacy considerations.

Since: 2.46

getAcceptedCas

tlsClientConnectionGetAcceptedCas Source #

Arguments

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

conn: the TlsClientConnection

-> m [ByteString]

Returns: the list of CA DNs. You should unref each element with byteArrayUnref and then the free the list with g_list_free().

Gets the list of distinguished names of the Certificate Authorities that the server will accept certificates from. This will be set during the TLS handshake if the server requests a certificate. Otherwise, it will be Nothing.

Each item in the list is a ByteArray which contains the complete subject DN of the certificate authority.

Since: 2.28

getServerIdentity

tlsClientConnectionGetServerIdentity Source #

Arguments

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

conn: the TlsClientConnection

-> m (Maybe SocketConnectable)

Returns: a SocketConnectable describing the expected server identity, or Nothing if the expected identity is not known.

Gets conn's expected server identity

Since: 2.28

getUseSsl3

tlsClientConnectionGetUseSsl3 Source #

Arguments

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

conn: the TlsClientConnection

-> m Bool

Returns: False

Deprecated: (Since version 2.56)SSL 3.0 is insecure.

SSL 3.0 is no longer supported. See tlsClientConnectionSetUseSsl3 for details.

Since: 2.28

getValidationFlags

tlsClientConnectionGetValidationFlags Source #

Arguments

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

conn: the TlsClientConnection

-> m [TlsCertificateFlags]

Returns: the validation flags

Deprecated: (Since version 2.72)Do not attempt to ignore validation errors.

Gets conn's validation flags

This function does not work as originally designed and is impossible to use correctly. See TlsClientConnection:validationFlags for more information.

Since: 2.28

new

tlsClientConnectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsIOStream a, IsSocketConnectable b) 
=> a

baseIoStream: the IOStream to wrap

-> Maybe b

serverIdentity: the expected identity of the server

-> m TlsClientConnection

Returns: the new TlsClientConnection, or Nothing on error (Can throw GError)

Creates a new TlsClientConnection wrapping baseIoStream (which must have pollable input and output streams) which is assumed to communicate with the server identified by serverIdentity.

See the documentation for TlsConnection:baseIoStream for restrictions on when application code can run operations on the baseIoStream after this function has returned.

Since: 2.28

setServerIdentity

tlsClientConnectionSetServerIdentity Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsClientConnection a, IsSocketConnectable b) 
=> a

conn: the TlsClientConnection

-> b

identity: a SocketConnectable describing the expected server identity

-> m () 

Sets conn's expected server identity, which is used both to tell servers on virtual hosts which certificate to present, and also to let conn know what name to look for in the certificate when performing TlsCertificateFlagsBadIdentity validation, if enabled.

Since: 2.28

setUseSsl3

tlsClientConnectionSetUseSsl3 Source #

Arguments

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

conn: the TlsClientConnection

-> Bool

useSsl3: a Bool, ignored

-> m () 

Deprecated: (Since version 2.56)SSL 3.0 is insecure.

Since GLib 2.42.1, SSL 3.0 is no longer supported.

From GLib 2.42.1 through GLib 2.62, this function could be used to force use of TLS 1.0, the lowest-supported TLS protocol version at the time. In the past, this was needed to connect to broken TLS servers that exhibited protocol version intolerance. Such servers are no longer common, and using TLS 1.0 is no longer considered acceptable.

Since GLib 2.64, this function does nothing.

Since: 2.28

setValidationFlags

tlsClientConnectionSetValidationFlags Source #

Arguments

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

conn: the TlsClientConnection

-> [TlsCertificateFlags]

flags: the TlsCertificateFlags to use

-> m () 

Deprecated: (Since version 2.72)Do not attempt to ignore validation errors.

Sets conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, TlsCertificateFlagsValidateAll is used.

This function does not work as originally designed and is impossible to use correctly. See TlsClientConnection:validationFlags for more information.

Since: 2.28

Properties

acceptedCas

A list of the distinguished names of the Certificate Authorities that the server will accept client certificates signed by. If the server requests a client certificate during the handshake, then this property will be set after the handshake completes.

Each item in the list is a ByteArray which contains the complete subject DN of the certificate authority.

Since: 2.28

data TlsClientConnectionAcceptedCasPropertyInfo Source #

Instances

Instances details
AttrInfo TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

Associated Types

type AttrAllowedOps TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionAcceptedCasPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrAllowedOps TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionAcceptedCasPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

getTlsClientConnectionAcceptedCas :: (MonadIO m, IsTlsClientConnection o) => o -> m [Ptr ()] Source #

Get the value of the “accepted-cas” property. When overloading is enabled, this is equivalent to

get tlsClientConnection #acceptedCas

serverIdentity

A SocketConnectable describing the identity of the server that is expected on the other end of the connection.

If the TlsCertificateFlagsBadIdentity flag is set in TlsClientConnection:validationFlags, this object will be used to determine the expected identify of the remote end of the connection; if TlsClientConnection:serverIdentity is not set, or does not match the identity presented by the server, then the TlsCertificateFlagsBadIdentity validation will fail.

In addition to its use in verifying the server certificate, this is also used to give a hint to the server about what certificate we expect, which is useful for servers that serve virtual hosts.

Since: 2.28

data TlsClientConnectionServerIdentityPropertyInfo Source #

Instances

Instances details
AttrInfo TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

Associated Types

type AttrAllowedOps TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionServerIdentityPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrAllowedOps TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionServerIdentityPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

constructTlsClientConnectionServerIdentity :: (IsTlsClientConnection o, MonadIO m, IsSocketConnectable a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “server-identity” property. This is rarely needed directly, but it is used by new.

getTlsClientConnectionServerIdentity :: (MonadIO m, IsTlsClientConnection o) => o -> m (Maybe SocketConnectable) Source #

Get the value of the “server-identity” property. When overloading is enabled, this is equivalent to

get tlsClientConnection #serverIdentity

setTlsClientConnectionServerIdentity :: (MonadIO m, IsTlsClientConnection o, IsSocketConnectable a) => o -> a -> m () Source #

Set the value of the “server-identity” property. When overloading is enabled, this is equivalent to

set tlsClientConnection [ #serverIdentity := value ]

useSsl3

SSL 3.0 is no longer supported. See tlsClientConnectionSetUseSsl3 for details.

Since: 2.28

data TlsClientConnectionUseSsl3PropertyInfo Source #

Instances

Instances details
AttrInfo TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

Associated Types

type AttrAllowedOps TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionUseSsl3PropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrAllowedOps TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionUseSsl3PropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

constructTlsClientConnectionUseSsl3 :: (IsTlsClientConnection o, MonadIO m) => Bool -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “use-ssl3” property. This is rarely needed directly, but it is used by new.

getTlsClientConnectionUseSsl3 :: (MonadIO m, IsTlsClientConnection o) => o -> m Bool Source #

Get the value of the “use-ssl3” property. When overloading is enabled, this is equivalent to

get tlsClientConnection #useSsl3

setTlsClientConnectionUseSsl3 :: (MonadIO m, IsTlsClientConnection o) => o -> Bool -> m () Source #

Set the value of the “use-ssl3” property. When overloading is enabled, this is equivalent to

set tlsClientConnection [ #useSsl3 := value ]

validationFlags

What steps to perform when validating a certificate received from a server. Server certificates that fail to validate in any of the ways indicated here will be rejected unless the application overrides the default via TlsConnection::acceptCertificate.

GLib guarantees that if certificate verification fails, at least one flag will be set, but it does not guarantee that all possible flags will be set. Accordingly, you may not safely decide to ignore any particular type of error. For example, it would be incorrect to mask TlsCertificateFlagsExpired if you want to allow expired certificates, because this could potentially be the only error flag set even if other problems exist with the certificate. Therefore, there is no safe way to use this property. This is not a horrible problem, though, because you should not be attempting to ignore validation errors anyway. If you really must ignore TLS certificate errors, connect to TlsConnection::acceptCertificate.

Since: 2.28

data TlsClientConnectionValidationFlagsPropertyInfo Source #

Instances

Instances details
AttrInfo TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

Associated Types

type AttrAllowedOps TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionValidationFlagsPropertyInfo 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrAllowedOps TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrBaseTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrGetType TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrLabel TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrOrigin TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrSetTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferType TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

type AttrTransferTypeConstraint TlsClientConnectionValidationFlagsPropertyInfo Source # 
Instance details

Defined in GI.Gio.Interfaces.TlsClientConnection

constructTlsClientConnectionValidationFlags :: (IsTlsClientConnection o, MonadIO m) => [TlsCertificateFlags] -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “validation-flags” property. This is rarely needed directly, but it is used by new.

getTlsClientConnectionValidationFlags :: (MonadIO m, IsTlsClientConnection o) => o -> m [TlsCertificateFlags] Source #

Get the value of the “validation-flags” property. When overloading is enabled, this is equivalent to

get tlsClientConnection #validationFlags

setTlsClientConnectionValidationFlags :: (MonadIO m, IsTlsClientConnection o) => o -> [TlsCertificateFlags] -> m () Source #

Set the value of the “validation-flags” property. When overloading is enabled, this is equivalent to

set tlsClientConnection [ #validationFlags := value ]