gi-gio-2.0.20: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Interfaces.TlsServerConnection

Contents

Description

TlsServerConnection is the server-side subclass of TlsConnection, representing a server-side TLS connection.

Since: 2.28

Synopsis

Exported types

class (GObject o, IsDescendantOf TlsServerConnection o) => IsTlsServerConnection o Source #

Type class for types which can be safely cast to TlsServerConnection, for instance with toTlsServerConnection.

toTlsServerConnection :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsServerConnection Source #

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

Methods

new

tlsServerConnectionNew Source #

Arguments

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

baseIoStream: the IOStream to wrap

-> Maybe b

certificate: the default server certificate, or Nothing

-> m TlsServerConnection

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

Creates a new TlsServerConnection wrapping baseIoStream (which must have pollable input and output streams).

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

Since: 2.28

Properties

authenticationMode

The TlsAuthenticationMode for the server. This can be changed before calling tlsConnectionHandshake if you want to rehandshake with a different mode from the initial handshake.

Since: 2.28

constructTlsServerConnectionAuthenticationMode :: IsTlsServerConnection o => TlsAuthenticationMode -> IO (GValueConstruct o) Source #

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

getTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> m TlsAuthenticationMode Source #

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

get tlsServerConnection #authenticationMode

setTlsServerConnectionAuthenticationMode :: (MonadIO m, IsTlsServerConnection o) => o -> TlsAuthenticationMode -> m () Source #

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

set tlsServerConnection [ #authenticationMode := value ]