setDatabase
Sets the certificate database that is used to verify peer certificates. This is set to the default database by default. See g_tls_backend_get_default_database(). If set to null, then peer certificate validation will always set the %G_TLS_CERTIFICATE_UNKNOWN_CA error (meaning #GTlsConnection::accept-certificate will always be emitted on client-side connections, unless that bit is not set in #GTlsClientConnection:validation-flags).
There are nonintuitive security implications when using a non-default database. See #GTlsConnection:database for details.
Since
2.30
Parameters
database
a #GTlsDatabase