Table of Contents

Class TlsCertificate

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

Methods

GetGType()

Calls native function g_tls_certificate_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetIssuer(IntPtr)

Calls native method g_tls_certificate_get_issuer. Version: 2.28

[Version("2.28")]
public static extern IntPtr GetIssuer(IntPtr cert)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetIssuerName(IntPtr)

Calls native method g_tls_certificate_get_issuer_name. Version: 2.70

[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetIssuerName(IntPtr cert)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

GetNotValidAfter(IntPtr)

Calls native method g_tls_certificate_get_not_valid_after. Version: 2.70

[Version("2.70")]
public static extern DateTimeOwnedHandle GetNotValidAfter(IntPtr cert)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

Returns

DateTimeOwnedHandle

Transfer ownership: Full Nullable: True

GetNotValidBefore(IntPtr)

Calls native method g_tls_certificate_get_not_valid_before. Version: 2.70

[Version("2.70")]
public static extern DateTimeOwnedHandle GetNotValidBefore(IntPtr cert)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

Returns

DateTimeOwnedHandle

Transfer ownership: Full Nullable: True

GetSubjectName(IntPtr)

Calls native method g_tls_certificate_get_subject_name. Version: 2.70

[Version("2.70")]
public static extern NullableUtf8StringOwnedHandle GetSubjectName(IntPtr cert)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: True

IsSame(IntPtr, IntPtr)

Calls native method g_tls_certificate_is_same. Version: 2.34

[Version("2.34")]
public static extern bool IsSame(IntPtr certOne, IntPtr certTwo)

Parameters

certOne IntPtr

Transfer ownership: None Nullable: False

certTwo IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ListNewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native function g_tls_certificate_list_new_from_file. Version: 2.28

[Version("2.28")]
public static extern ListOwnedHandle ListNewFromFile(NonNullablePlatformStringHandle file, out ErrorOwnedHandle error)

Parameters

file NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

ListOwnedHandle

Transfer ownership: Full Nullable: False

NewFromFile(NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_file. Version: 2.28

[Version("2.28")]
public static extern IntPtr NewFromFile(NonNullablePlatformStringHandle file, out ErrorOwnedHandle error)

Parameters

file NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromFileWithPassword(NonNullablePlatformStringHandle, NonNullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_file_with_password. Version: 2.72

[Version("2.72")]
public static extern IntPtr NewFromFileWithPassword(NonNullablePlatformStringHandle file, NonNullableUtf8StringHandle password, out ErrorOwnedHandle error)

Parameters

file NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

password NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromFiles(NonNullablePlatformStringHandle, NonNullablePlatformStringHandle, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_files. Version: 2.28

[Version("2.28")]
public static extern IntPtr NewFromFiles(NonNullablePlatformStringHandle certFile, NonNullablePlatformStringHandle keyFile, out ErrorOwnedHandle error)

Parameters

certFile NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

keyFile NonNullablePlatformStringHandle

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromPem(NonNullableUtf8StringHandle, long, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_pem. Version: 2.28

[Version("2.28")]
public static extern IntPtr NewFromPem(NonNullableUtf8StringHandle data, long length, out ErrorOwnedHandle error)

Parameters

data NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

length long

Transfer ownership: None Nullable: False

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromPkcs11Uris(NonNullableUtf8StringHandle, NullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_pkcs11_uris. Version: 2.68

[Version("2.68")]
public static extern IntPtr NewFromPkcs11Uris(NonNullableUtf8StringHandle pkcs11Uri, NullableUtf8StringHandle privateKeyPkcs11Uri, out ErrorOwnedHandle error)

Parameters

pkcs11Uri NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

privateKeyPkcs11Uri NullableUtf8StringHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

NewFromPkcs12(ref byte, nuint, NullableUtf8StringHandle, out ErrorOwnedHandle)

Calls native constructor g_tls_certificate_new_from_pkcs12. Version: 2.72

[Version("2.72")]
public static extern IntPtr NewFromPkcs12(ref byte data, nuint length, NullableUtf8StringHandle password, out ErrorOwnedHandle error)

Parameters

data byte

Transfer ownership: None Nullable: False

length nuint

Transfer ownership: None Nullable: False

password NullableUtf8StringHandle

Transfer ownership: None Nullable: True

error ErrorOwnedHandle

Returns

IntPtr

Transfer ownership: Full Nullable: False

Verify(IntPtr, IntPtr, IntPtr)

Calls native method g_tls_certificate_verify. Version: 2.28

[Version("2.28")]
public static extern TlsCertificateFlags Verify(IntPtr cert, IntPtr identity, IntPtr trustedCa)

Parameters

cert IntPtr

Transfer ownership: None Nullable: False

identity IntPtr

Transfer ownership: None Nullable: True

trustedCa IntPtr

Transfer ownership: None Nullable: True

Returns

TlsCertificateFlags

Transfer ownership: None Nullable: False