Gio.TlsClientConnection.prototype.set_validation_flags

function set_validation_flags(flags: Gio.TlsCertificateFlags): void {
    // Gjs wrapper for g_tls_client_connection_set_validation_flags()
}
  

Sets conn's validation flags, to override the default set of checks performed when validating a server certificate. By default, Gio.TlsCertificateFlags.validate_all is used.

Since 2.28

flags

the Gio.TlsCertificateFlags to use