peer_certificate_errors


Description:

[ ConcreteAccessor ]
public abstract TlsCertificateFlags peer_certificate_errors { get; }

The errors noticed while verifying peer_certificate.

Normally this should be 0, but it may not be if validation_flags is not g_tls_certificate_validate_all, or if accept_certificate overrode the default behavior.

GLib guarantees that if certificate verification fails, at least one error will be set, but it does not guarantee that all possible errors will be set. Accordingly, you may not safely decide to ignore any particular type of error. For example, it would be incorrect to mask g_tls_certificate_expired if you want to allow expired certificates, because this could potentially be the only error flag set even if other problems exist with the certificate.