1MONGOC_CLIENT_SET_SSL_OPTS(3)      libmongoc     MONGOC_CLIENT_SET_SSL_OPTS(3)
2
3
4

NAME

6       mongoc_client_set_ssl_opts - mongoc_client_set_ssl_opts()
7

SYNOPSIS

9          #ifdef MONGOC_ENABLE_SSL
10          void
11          mongoc_client_set_ssl_opts (mongoc_client_t *client,
12                                      const mongoc_ssl_opt_t *opts);
13          #endif
14
15       Sets  the  TLS (SSL) options to use when connecting to TLS enabled Mon‐
16       goDB servers.
17
18       The mongoc_ssl_opt_t struct is copied by  the  client  along  with  the
19       strings it points to (pem_file, pem_pwd, ca_file, ca_dir, and crl_file)
20       so  they  don't  have  to  remain  valid  after  the   call   to   mon‐
21       goc_client_set_ssl_opts.
22
23       A  call  to  mongoc_client_set_ssl_opts  overrides  all TLS options set
24       through the connection string with which the mongoc_client_t  was  con‐
25       structed.
26
27       It  is  a  programming  error  to call this function on a client from a
28       mongoc_client_pool_t. Instead,  call  mongoc_client_pool_set_ssl_opts()
29       on the pool before popping any clients.
30

PARAMETERS

32client: A mongoc_client_t.
33
34opts: A mongoc_ssl_opt_t.
35

AVAILABILITY

37       This feature requires that the MongoDB C driver was compiled with -DEN‐
38       ABLE_SSL.
39

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.23.1                           Oct 20, 2022    MONGOC_CLIENT_SET_SSL_OPTS(3)
Impressum