TlsDatabase.lookupCertificateForHandleFinish

gio.tls_certificate.TlsCertificate lookupCertificateForHandleFinish(gio.async_result.AsyncResult result)

Finish an asynchronous lookup of a certificate by its handle. See [gio.tls_database.TlsDatabase.lookupCertificateForHandle] for more information.

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

Parameters

resulta #GAsyncResult.

Returns

a newly allocated #GTlsCertificate object.

Use [gobject.object.ObjectWrap.unref] to release the certificate.

Throws

[ErrorWrap]