1MONGOC_CLIENT_POOL_SET_SSL_OPTS(3) libmongocMONGOC_CLIENT_POOL_SET_SSL_OPTS(3)
2
3
4
6 #ifdef MONGOC_ENABLE_SSL
7 void
8 mongoc_client_pool_set_ssl_opts (mongoc_client_pool_t *pool,
9 const mongoc_ssl_opt_t *opts);
10 #endif
11
12 This function is identical to mongoc_client_set_ssl_opts() except for
13 client pools. It ensures that all clients retrieved from
14 mongoc_client_pool_pop() or mongoc_client_pool_try_pop() are configured
15 with the same SSL settings.
16
17 The mongoc_ssl_opt_t struct is copied by the pool along with the
18 strings it points to (pem_file, pem_pwd, ca_file, ca_dir, and crl_file)
19 so they don't have to remain valid after the call to mon‐
20 goc_client_pool_set_ssl_opts.
21
22 A call to mongoc_client_pool_set_ssl_opts overrides all TLS options set
23 through the connection string with which the mongoc_client_pool_t was
24 constructed.
25
27 • pool: A mongoc_client_pool_t.
28
29 • opts: A mongoc_ssl_opt_t.
30
32 This function can only be called once on a pool, and must be called be‐
33 fore the first call to mongoc_client_pool_pop().
34
36 This feature requires that the MongoDB C driver was compiled with -DEN‐
37 ABLE_SSL.
38
40 MongoDB, Inc
41
43 2017-present, MongoDB, Inc
44
45
46
47
481.25.1 Nov 08, 2023MONGOC_CLIENT_POOL_SET_SSL_OPTS(3)