1MONGOC_CLIENT_POOL_SET_SSL_OPTS(M3o)ngoDB C DrivMeOrNGOC_CLIENT_POOL_SET_SSL_OPTS(3)
2
3
4
6 mongoc_client_pool_set_ssl_opts - mongoc_client_pool_set_ssl_opts()
7
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 SSL options set
26 through the connection string with which the mongoc_client_pool_t was
27 constructed.
28
30 · pool: A mongoc_client_pool_t.
31
32 · opts: A mongoc_ssl_opt_t.
33
35 This function can only be called once on a pool, and must be called
36 before the first call to mongoc_client_pool_pop.
37
39 This feature requires that the MongoDB C driver was compiled with -DEN‐
40 ABLE_SSL.
41
43 MongoDB, Inc
44
46 2017-present, MongoDB, Inc
47
48
49
50
511.13.1 Jan 24, 2019MONGOC_CLIENT_POOL_SET_SSL_OPTS(3)