Gio.TlsConnection:peer-certificate-errors (original) (raw)

Property

GioTlsConnection:peer-certificate-errors

since: 2.28

Declaration

property peer-certificate-errors: Gio.TlsCertificateFlags [ read ]

Description [src]

The errors noticed while verifyingGTlsConnection:peer-certificate. Normally this should be 0, but it may not be if GTlsClientConnection:validation-flags is notG_TLS_CERTIFICATE_VALIDATE_ALL, or ifGTlsConnection::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.

Flags

Readable yes
Writable no
Construct no
Construct only no