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  SSL  options  to  use when connecting to SSL enabled MongoDB
16       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 SSL 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 mon‐
28       goc_client_pool_t. Instead, call mongoc_client_pool_set_ssl_opts on the
29       pool before popping any clients.
30

PARAMETERS

32       · client: A mongoc_client_t.
33
34       · opts: 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.16.2                           Feb 25, 2020    MONGOC_CLIENT_SET_SSL_OPTS(3)
Impressum