lookupCertificateForHandle

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.

The handle should have been created by calling g_tls_database_create_certificate_handle() on a #GTlsDatabase object of the same TLS backend. The handle is designed to remain valid across instantiations of the database.

If the handle is no longer valid, or does not point to a certificate in this database, then null will be returned.

This function can block, use g_tls_database_lookup_certificate_for_handle_async() to perform the lookup operation asynchronously.

Return

a newly allocated #GTlsCertificate, or null. Use g_object_unref() to release the certificate.

Since

2.30

Parameters

handle

a certificate handle

interaction

used to interact with the user if necessary

flags

Flags which affect the lookup.

cancellable

a #GCancellable, or null