trust_is_certificate_pinned


Description:

public bool trust_is_certificate_pinned (Certificate certificate, string purpose, string peer, Cancellable? cancellable = null) throws Error

Check if certificate is pinned for purpose to communicate with peer.

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.

Parameters:

certificate

a Certificate to check

purpose

the purpose string

peer

the peer for this pinned

cancellable

a Cancellable

Returns:

true if the certificate is pinned for the host and purpose


Namespace: Gcr
Package: gcr-3