Table of Contents

Class TlsConnection

Namespace
Gio.Internal
Assembly
Gio-2.0.dll
public class TlsConnection
Inheritance
TlsConnection
Inherited Members

Methods

EmitAcceptCertificate(nint, nint, TlsCertificateFlags)

Calls native method g_tls_connection_emit_accept_certificate. Version: 2.28

[Version("2.28")]
public static extern bool EmitAcceptCertificate(nint conn, nint peerCert, TlsCertificateFlags errors)

Parameters

conn nint

Transfer ownership: None Nullable: False

peerCert nint

Transfer ownership: None Nullable: False

errors TlsCertificateFlags

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetCertificate(nint)

Calls native method g_tls_connection_get_certificate. Version: 2.28

[Version("2.28")]
public static extern nint GetCertificate(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetChannelBindingData(nint, TlsChannelBindingType, out byte[], out ErrorOwnedHandle)

Calls native method g_tls_connection_get_channel_binding_data. Version: 2.66

[Version("2.66")]
public static extern bool GetChannelBindingData(nint conn, TlsChannelBindingType type, out byte[] data, out ErrorOwnedHandle error)

Parameters

conn nint

Transfer ownership: None Nullable: False

type TlsChannelBindingType

Transfer ownership: None Nullable: False

data byte[]

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

GetCiphersuiteName(nint)

Calls native method g_tls_connection_get_ciphersuite_name. Version: 2.70

[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetCiphersuiteName(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetDatabase(nint)

Calls native method g_tls_connection_get_database. Version: 2.30

[Version("2.30")]
public static extern nint GetDatabase(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetGType()

Calls native function g_tls_connection_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetInteraction(nint)

Calls native method g_tls_connection_get_interaction. Version: 2.30

[Version("2.30")]
public static extern nint GetInteraction(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetNegotiatedProtocol(nint)

Calls native method g_tls_connection_get_negotiated_protocol. Version: 2.60

[Version("2.60")]
public static extern NullableUtf8StringUnownedHandle GetNegotiatedProtocol(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetPeerCertificate(nint)

Calls native method g_tls_connection_get_peer_certificate. Version: 2.28

[Version("2.28")]
public static extern nint GetPeerCertificate(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetPeerCertificateErrors(nint)

Calls native method g_tls_connection_get_peer_certificate_errors. Version: 2.28

[Version("2.28")]
public static extern TlsCertificateFlags GetPeerCertificateErrors(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

TlsCertificateFlags

Transfer ownership: None Nullable: False

GetProtocolVersion(nint)

Calls native method g_tls_connection_get_protocol_version. Version: 2.70

[Version("2.70")]
public static extern TlsProtocolVersion GetProtocolVersion(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

TlsProtocolVersion

Transfer ownership: None Nullable: False

GetRehandshakeMode(nint)

Calls native method g_tls_connection_get_rehandshake_mode. Version: 2.28

[Version("2.28")]
public static extern TlsRehandshakeMode GetRehandshakeMode(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

TlsRehandshakeMode

Transfer ownership: None Nullable: False

GetRequireCloseNotify(nint)

Calls native method g_tls_connection_get_require_close_notify. Version: 2.28

[Version("2.28")]
public static extern bool GetRequireCloseNotify(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetUseSystemCertdb(nint)

Calls native method g_tls_connection_get_use_system_certdb.

public static extern bool GetUseSystemCertdb(nint conn)

Parameters

conn nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

Handshake(nint, nint, out ErrorOwnedHandle)

Calls native method g_tls_connection_handshake. Version: 2.28

[Version("2.28")]
public static extern bool Handshake(nint conn, nint cancellable, out ErrorOwnedHandle error)

Parameters

conn nint

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

HandshakeAsync(nint, int, nint, AsyncReadyCallback, nint)

Calls native method g_tls_connection_handshake_async. Version: 2.28

[Version("2.28")]
public static extern void HandshakeAsync(nint conn, int ioPriority, nint cancellable, AsyncReadyCallback callback, nint userData)

Parameters

conn nint

Transfer ownership: None Nullable: False

ioPriority int

Transfer ownership: None Nullable: False

cancellable nint

Transfer ownership: None Nullable: True

callback AsyncReadyCallback

Transfer ownership: None Nullable: True

userData nint

Transfer ownership: None Nullable: True

HandshakeFinish(nint, nint, out ErrorOwnedHandle)

Calls native method g_tls_connection_handshake_finish. Version: 2.28

[Version("2.28")]
public static extern bool HandshakeFinish(nint conn, nint result, out ErrorOwnedHandle error)

Parameters

conn nint

Transfer ownership: None Nullable: False

result nint

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

bool

Transfer ownership: None Nullable: False

SetAdvertisedProtocols(nint, Utf8StringArrayNullTerminatedHandle)

Calls native method g_tls_connection_set_advertised_protocols. Version: 2.60

[Version("2.60")]
public static extern void SetAdvertisedProtocols(nint conn, Utf8StringArrayNullTerminatedHandle protocols)

Parameters

conn nint

Transfer ownership: None Nullable: False

protocols Utf8StringArrayNullTerminatedHandle

Transfer ownership: None Nullable: True

SetCertificate(nint, nint)

Calls native method g_tls_connection_set_certificate. Version: 2.28

[Version("2.28")]
public static extern void SetCertificate(nint conn, nint certificate)

Parameters

conn nint

Transfer ownership: None Nullable: False

certificate nint

Transfer ownership: None Nullable: False

SetDatabase(nint, nint)

Calls native method g_tls_connection_set_database. Version: 2.30

[Version("2.30")]
public static extern void SetDatabase(nint conn, nint database)

Parameters

conn nint

Transfer ownership: None Nullable: False

database nint

Transfer ownership: None Nullable: True

SetInteraction(nint, nint)

Calls native method g_tls_connection_set_interaction. Version: 2.30

[Version("2.30")]
public static extern void SetInteraction(nint conn, nint interaction)

Parameters

conn nint

Transfer ownership: None Nullable: False

interaction nint

Transfer ownership: None Nullable: True

SetRehandshakeMode(nint, TlsRehandshakeMode)

Calls native method g_tls_connection_set_rehandshake_mode. Version: 2.28

[Version("2.28")]
public static extern void SetRehandshakeMode(nint conn, TlsRehandshakeMode mode)

Parameters

conn nint

Transfer ownership: None Nullable: False

mode TlsRehandshakeMode

Transfer ownership: None Nullable: False

SetRequireCloseNotify(nint, bool)

Calls native method g_tls_connection_set_require_close_notify. Version: 2.28

[Version("2.28")]
public static extern void SetRequireCloseNotify(nint conn, bool requireCloseNotify)

Parameters

conn nint

Transfer ownership: None Nullable: False

requireCloseNotify bool

Transfer ownership: None Nullable: False

SetUseSystemCertdb(nint, bool)

Calls native method g_tls_connection_set_use_system_certdb.

public static extern void SetUseSystemCertdb(nint conn, bool useSystemCertdb)

Parameters

conn nint

Transfer ownership: None Nullable: False

useSystemCertdb bool

Transfer ownership: None Nullable: False