trust_is_certificate_anchored


Description:


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

Check if the certificate is a trust anchor for the given purpose.

A trust anchor is used to verify the signatures on other certificates when verifying a certificate chain. Also known as a trusted certificate authority.

This call may block, see [func@Gcr.trust_is_certificate_anchored_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

cancellable

a Cancellable

Returns:

true if the certificate is a trust anchor


Namespace: Gcr
Package: gcr-3