1MONGOC_CLIENT_POOL_SET_SSL_OPTS(3) libmongocMONGOC_CLIENT_POOL_SET_SSL_OPTS(3)
2
3
4

NAME

6       mongoc_client_pool_set_ssl_opts - mongoc_client_pool_set_ssl_opts()
7

SYNOPSIS

9          #ifdef MONGOC_ENABLE_SSL
10          void
11          mongoc_client_pool_set_ssl_opts (mongoc_client_pool_t *pool,
12                                           const mongoc_ssl_opt_t *opts);
13          #endif
14
15       This  function  is identical to mongoc_client_set_ssl_opts() except for
16       client  pools.  It  ensures  that  all  clients  retrieved  from   mon‐
17       goc_client_pool_pop()  or  mongoc_client_pool_try_pop()  are configured
18       with the same SSL settings.
19
20       The mongoc_ssl_opt_t struct is  copied  by  the  pool  along  with  the
21       strings it points to (pem_file, pem_pwd, ca_file, ca_dir, and crl_file)
22       so  they  don't  have  to  remain  valid  after  the   call   to   mon‐
23       goc_client_pool_set_ssl_opts.
24
25       A call to mongoc_client_pool_set_ssl_opts overrides all TLS options set
26       through the connection string with which the  mongoc_client_pool_t  was
27       constructed.
28

PARAMETERS

30pool: A mongoc_client_pool_t.
31
32opts: A mongoc_ssl_opt_t.
33

THREAD SAFETY

35       This function can only be called once on a pool, and must be called be‐
36       fore the first call to mongoc_client_pool_pop.
37

AVAILABILITY

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

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.20.0                           Nov 18, 2021MONGOC_CLIENT_POOL_SET_SSL_OPTS(3)
Impressum