trust_add_pinned_certificate_async


Description:


public async bool trust_add_pinned_certificate_async (Certificate certificate, string purpose, string peer, Cancellable? cancellable) throws Error

Add a pinned certificate for communication with peer for purpose.

A pinned certificate overrides all other certificate verification and should be used with care.

If the same pinned certificate already exists, then this operation does not add another, and succeeds without error.

When the operation is finished, callback will be called. You can then call [[email protected]_add_pinned_certificate_finish] to get the result of the operation.

Parameters:

certificate

a Certificate

purpose

the purpose string

peer

the peer for this pinned certificate

cancellable

a Cancellable

callback

a TaskReadyCallback to call when the operation completes

user_data

the data to pass to callback function


Namespace: Gcr
Package: gcr-3



2022 vala-language.org