Gio.TlsConnection.set_database (original) (raw)
Method
GioTlsConnectionset_database
since: 2.30
Declaration [src]
void
g_tls_connection_set_database (
GTlsConnection* conn,
GTlsDatabase* database
)
Description [src]
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 theG_TLS_CERTIFICATE_UNKNOWN_CA
error (meaningGTlsConnection::accept-certificate
will always be emitted on client-side connections, unless that bit is not set inGTlsClientConnection:validation-flags
).
There are nonintuitive security implications when using a non-default database. See GTlsConnection:database
for details.
Available since: 2.30
Parameters
database
Type: GTlsDatabase
A GTlsDatabase
.
The argument can be NULL. |
---|
The data is owned by the caller of the method. |