Table of Contents

Class TlsConnection

Namespace
Gio
Assembly
Gio-2.0.dll
public class TlsConnection : IOStream, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
TlsConnection
Implements
Inherited Members

Constructors

TlsConnection(bool, params ConstructArgument[])

protected TlsConnection(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

TlsConnection(IntPtr, bool)

protected TlsConnection(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

AcceptCertificateSignal

Signal Descriptor for OnAcceptCertificate.

public static readonly ReturningSignal<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool> AcceptCertificateSignal

Field Value

ReturningSignal<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool>

AdvertisedProtocolsPropertyDefinition

public static readonly Property<string[], TlsConnection> AdvertisedProtocolsPropertyDefinition

Field Value

Property<string[], TlsConnection>

BaseIoStreamPropertyDefinition

public static readonly Property<IOStream?, TlsConnection> BaseIoStreamPropertyDefinition

Field Value

Property<IOStream, TlsConnection>

CertificatePropertyDefinition

public static readonly Property<TlsCertificate?, TlsConnection> CertificatePropertyDefinition

Field Value

Property<TlsCertificate, TlsConnection>

CiphersuiteNamePropertyDefinition

public static readonly Property<string?, TlsConnection> CiphersuiteNamePropertyDefinition

Field Value

Property<string, TlsConnection>

DatabasePropertyDefinition

public static readonly Property<TlsDatabase?, TlsConnection> DatabasePropertyDefinition

Field Value

Property<TlsDatabase, TlsConnection>

InteractionPropertyDefinition

public static readonly Property<TlsInteraction?, TlsConnection> InteractionPropertyDefinition

Field Value

Property<TlsInteraction, TlsConnection>

NegotiatedProtocolPropertyDefinition

public static readonly Property<string?, TlsConnection> NegotiatedProtocolPropertyDefinition

Field Value

Property<string, TlsConnection>

PeerCertificateErrorsPropertyDefinition

public static readonly Property<TlsCertificateFlags, TlsConnection> PeerCertificateErrorsPropertyDefinition

Field Value

Property<TlsCertificateFlags, TlsConnection>

PeerCertificatePropertyDefinition

public static readonly Property<TlsCertificate?, TlsConnection> PeerCertificatePropertyDefinition

Field Value

Property<TlsCertificate, TlsConnection>

ProtocolVersionPropertyDefinition

public static readonly Property<TlsProtocolVersion, TlsConnection> ProtocolVersionPropertyDefinition

Field Value

Property<TlsProtocolVersion, TlsConnection>

RehandshakeModePropertyDefinition

public static readonly Property<TlsRehandshakeMode, TlsConnection> RehandshakeModePropertyDefinition

Field Value

Property<TlsRehandshakeMode, TlsConnection>

RequireCloseNotifyPropertyDefinition

public static readonly Property<bool, TlsConnection> RequireCloseNotifyPropertyDefinition

Field Value

Property<bool, TlsConnection>

UseSystemCertdbPropertyDefinition

public static readonly Property<bool, TlsConnection> UseSystemCertdbPropertyDefinition

Field Value

Property<bool, TlsConnection>

Properties

AdvertisedProtocols

public string[] AdvertisedProtocols { get; set; }

Property Value

string[]

BaseIoStream

public IOStream? BaseIoStream { get; }

Property Value

IOStream

Certificate

public TlsCertificate? Certificate { get; set; }

Property Value

TlsCertificate

CiphersuiteName

public string? CiphersuiteName { get; }

Property Value

string

Database

public TlsDatabase? Database { get; set; }

Property Value

TlsDatabase

Interaction

public TlsInteraction? Interaction { get; set; }

Property Value

TlsInteraction

NegotiatedProtocol

public string? NegotiatedProtocol { get; }

Property Value

string

PeerCertificate

public TlsCertificate? PeerCertificate { get; }

Property Value

TlsCertificate

PeerCertificateErrors

public TlsCertificateFlags PeerCertificateErrors { get; }

Property Value

TlsCertificateFlags

ProtocolVersion

public TlsProtocolVersion ProtocolVersion { get; }

Property Value

TlsProtocolVersion

RehandshakeMode

public TlsRehandshakeMode RehandshakeMode { get; set; }

Property Value

TlsRehandshakeMode

RequireCloseNotify

public bool RequireCloseNotify { get; set; }

Property Value

bool

UseSystemCertdb

public bool UseSystemCertdb { get; set; }

Property Value

bool

Methods

EmitAcceptCertificate(TlsCertificate, TlsCertificateFlags)

[Version("2.28")]
public bool EmitAcceptCertificate(TlsCertificate peerCert, TlsCertificateFlags errors)

Parameters

peerCert TlsCertificate
errors TlsCertificateFlags

Returns

bool

GetCertificate()

[Version("2.28")]
public TlsCertificate? GetCertificate()

Returns

TlsCertificate

GetCiphersuiteName()

[Version("2.70")]
public string? GetCiphersuiteName()

Returns

string

GetDatabase()

[Version("2.30")]
public TlsDatabase? GetDatabase()

Returns

TlsDatabase

GetGType()

public static Type GetGType()

Returns

Type

GetInteraction()

[Version("2.30")]
public TlsInteraction? GetInteraction()

Returns

TlsInteraction

GetNegotiatedProtocol()

[Version("2.60")]
public string? GetNegotiatedProtocol()

Returns

string

GetPeerCertificate()

[Version("2.28")]
public TlsCertificate? GetPeerCertificate()

Returns

TlsCertificate

GetPeerCertificateErrors()

[Version("2.28")]
public TlsCertificateFlags GetPeerCertificateErrors()

Returns

TlsCertificateFlags

GetProtocolVersion()

[Version("2.70")]
public TlsProtocolVersion GetProtocolVersion()

Returns

TlsProtocolVersion

GetRehandshakeMode()

[Version("2.28")]
public TlsRehandshakeMode GetRehandshakeMode()

Returns

TlsRehandshakeMode

GetRequireCloseNotify()

[Version("2.28")]
public bool GetRequireCloseNotify()

Returns

bool

GetUseSystemCertdb()

public bool GetUseSystemCertdb()

Returns

bool

Handshake(Cancellable?)

[Version("2.28")]
public bool Handshake(Cancellable? cancellable)

Parameters

cancellable Cancellable

Returns

bool

HandshakeFinish(AsyncResult)

[Version("2.28")]
public bool HandshakeFinish(AsyncResult result)

Parameters

result AsyncResult

Returns

bool

SetAdvertisedProtocols(string[]?)

[Version("2.60")]
public void SetAdvertisedProtocols(string[]? protocols)

Parameters

protocols string[]

SetCertificate(TlsCertificate)

[Version("2.28")]
public void SetCertificate(TlsCertificate certificate)

Parameters

certificate TlsCertificate

SetDatabase(TlsDatabase?)

[Version("2.30")]
public void SetDatabase(TlsDatabase? database)

Parameters

database TlsDatabase

SetInteraction(TlsInteraction?)

[Version("2.30")]
public void SetInteraction(TlsInteraction? interaction)

Parameters

interaction TlsInteraction

SetRehandshakeMode(TlsRehandshakeMode)

[Version("2.28")]
public void SetRehandshakeMode(TlsRehandshakeMode mode)

Parameters

mode TlsRehandshakeMode

SetRequireCloseNotify(bool)

[Version("2.28")]
public void SetRequireCloseNotify(bool requireCloseNotify)

Parameters

requireCloseNotify bool

SetUseSystemCertdb(bool)

public void SetUseSystemCertdb(bool useSystemCertdb)

Parameters

useSystemCertdb bool

Events

OnAcceptCertificate

public event ReturningSignalHandler<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool> OnAcceptCertificate

Event Type

ReturningSignalHandler<TlsConnection, TlsConnection.AcceptCertificateSignalArgs, bool>