get_tls_validation_flags


Description:

[ Version ( since = "1.2.1" ) ]
public TlsCertificateFlags get_tls_validation_flags ()

Gets the TLS validation flags used to verify the peer certificate when a TLS connection is established.

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 ignore 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.

Parameters:

this

a Connection

Returns:

the validation flags.