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
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 trust_add_pinned_certificate_async.end to get the result of the operation.
the purpose string
the peer for this pinned certificate
a TaskReadyCallback to call when the operation completes
the data to pass to callback function