Property

GioTlsConnection:peer-certificate-errors

since: 2.28

Declaration

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

Description

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

Type: GTlsCertificateFlags
Available since:2.28

Flags

Readableyes
Writableno
Constructno
Construct onlyno