mongoc_client_set_ssl_opts()

Synopsis

void
mongoc_client_set_ssl_opts (mongoc_client_t        *client,
                            const mongoc_ssl_opt_t *opts);

Sets the SSL options to use when connecting to SSL enabled MongoDB servers.

Although the mongoc_ssl_opt_t struct itself is shallow-copied by the client, the strings it points to (pem_file, pem_pwd, ca_file, ca_dir, and crl_file) are not copied and must remain valid for the life of the mongoc_client_t.

Parameters

client

A mongoc_client_t.

opts

A mongoc_ssl_opt_t. The struct is copied by the client, but the strings it points to are not.