public bool trust_is_certificate_pinned (Certificate certificate, string purpose, string peer, Cancellable? cancellable = null) throws Error
certificate is pinned for
purpose to communicate with
A pinned certificate overrides all other certificate verification.
This call may block, see trust_is_certificate_pinned_async for the non-blocking version.
In the case of an error, false is also returned. Check throws to detect if an error occurred.
a Certificate to check
the purpose string
the peer for this pinned
true if the certificate is pinned for the host and purpose