TlsFileDatabaseImpl

data class TlsFileDatabaseImpl(val gioTlsFileDatabasePointer: <Error class: unknown class><<Error class: unknown class>>) : TlsDatabase, TlsFileDatabase

The TlsFileDatabaseImpl type represents a native instance of the TlsFileDatabase interface.

Constructors

Link copied to clipboard
constructor(gioTlsFileDatabasePointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of TlsFileDatabase for the provided CPointer.

Properties

Link copied to clipboard
abstract val gioProxyPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gioTlsDatabasePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioTlsFileDatabasePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun connect(connection: IoStream, proxyAddress: ProxyAddress, cancellable: Cancellable? = null): <Error class: unknown class><IoStream>

Given @connection to communicate with a proxy (eg, a #GSocketConnection that is connected to the proxy server), this does the necessary handshake to connect to @proxy_address, and if required, wraps the #GIOStream to handle proxy payload.

Link copied to clipboard
open fun connectAsync(connection: IoStream, proxyAddress: ProxyAddress, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronous version of g_proxy_connect().

Link copied to clipboard
open fun connectFinish(result: AsyncResult): <Error class: unknown class><IoStream>

See g_proxy_connect().

Link copied to clipboard

Create a handle string for the certificate. The database will only be able to create a handle for certificates that originate from the database. In cases where the database cannot create a handle for a certificate, null will be returned.

Link copied to clipboard
open fun lookupCertificateForHandle(handle: String, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificate?>

Look up a certificate by its handle.

Link copied to clipboard
open fun lookupCertificateForHandleAsync(handle: String, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously look up a certificate by its handle in the database. See g_tls_database_lookup_certificate_for_handle() for more information.

Link copied to clipboard
open fun lookupCertificateForHandleFinish(result: AsyncResult): <Error class: unknown class><TlsCertificate>

Finish an asynchronous lookup of a certificate by its handle. See g_tls_database_lookup_certificate_for_handle() for more information.

Link copied to clipboard
open fun lookupCertificateIssuer(certificate: TlsCertificate, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificate>

Look up the issuer of @certificate in the database. The #GTlsCertificate:issuer property of @certificate is not modified, and the two certificates are not hooked into a chain.

Link copied to clipboard
open fun lookupCertificateIssuerAsync(certificate: TlsCertificate, interaction: TlsInteraction? = null, flags: TlsDatabaseLookupFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously look up the issuer of @certificate in the database. See g_tls_database_lookup_certificate_issuer() for more information.

Link copied to clipboard
open fun lookupCertificateIssuerFinish(result: AsyncResult): <Error class: unknown class><TlsCertificate>

Finish an asynchronous lookup issuer operation. See g_tls_database_lookup_certificate_issuer() for more information.

Link copied to clipboard
open fun lookupCertificatesIssuedByFinish(result: AsyncResult): <Error class: unknown class><<Error class: unknown class>>

Finish an asynchronous lookup of certificates. See g_tls_database_lookup_certificates_issued_by() for more information.

Link copied to clipboard

Some proxy protocols expect to be passed a hostname, which they will resolve to an IP address themselves. Others, like SOCKS4, do not allow this. This function will return false if @proxy is implementing such a protocol. When false is returned, the caller should resolve the destination hostname first, and then pass a #GProxyAddress containing the stringified IP address to g_proxy_connect() or g_proxy_connect_async().

Link copied to clipboard
open fun verifyChain(chain: TlsCertificate, purpose: String, identity: SocketConnectable? = null, interaction: TlsInteraction? = null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable? = null): <Error class: unknown class><TlsCertificateFlags>

Determines the validity of a certificate chain, outside the context of a TLS session.

Link copied to clipboard
open fun verifyChainAsync(chain: TlsCertificate, purpose: String, identity: SocketConnectable? = null, interaction: TlsInteraction? = null, flags: TlsDatabaseVerifyFlags, cancellable: Cancellable? = null, callback: AsyncReadyCallback?)

Asynchronously determines the validity of a certificate chain after looking up and adding any missing certificates to the chain. See g_tls_database_verify_chain() for more information.

Link copied to clipboard
open fun verifyChainFinish(result: AsyncResult): <Error class: unknown class><TlsCertificateFlags>

Finish an asynchronous verify chain operation. See g_tls_database_verify_chain() for more information.