[ CCode ( cprefix = "G_TLS_CERTIFICATE_" , type_id = "g_tls_certificate_flags_get_type ()" ) ]
[ Flags ]
[ Version ( since = "2.28" ) ]
public enum TlsCertificateFlags
A set of flags describing TLS certification validation.
This can be used to describe why a particular certificate was rejected (for example, in accept_certificate).
GLib guarantees that if certificate verification fails, at least one flag will be set, but it does not guarantee that all possible flags 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.