trust_add_pinned_certificate


Description:

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

Add a pinned certificate for connections to 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.

This call may block, see trust_add_pinned_certificate_async for the non-blocking version.

Parameters:

certificate

a Certificate

purpose

the purpose string

peer

the peer for this pinned certificate

cancellable

a Cancellable

Returns:

true if the pinned certificate is recorded successfully


Namespace: Gcr
Package: gcr-3