1MONGOC_SSL_OPT_T(3)                libmongoc               MONGOC_SSL_OPT_T(3)
2
3
4

NAME

6       mongoc_ssl_opt_t - mongoc_ssl_opt_t
7

SYNOPSIS

9          typedef struct {
10             const char *pem_file;
11             const char *pem_pwd;
12             const char *ca_file;
13             const char *ca_dir;
14             const char *crl_file;
15             bool weak_cert_validation;
16             bool allow_invalid_hostname;
17             void *internal;
18             void *padding[6];
19          } mongoc_ssl_opt_t;
20

DESCRIPTION

22       This  structure is used to set the TLS options for a mongoc_client_t or
23       mongoc_client_pool_t.
24
25       Beginning in version 1.2.0, once a pool or client has any  TLS  options
26       set, all connections use TLS, even if ssl=true is omitted from the Mon‐
27       goDB URI. Before, TLS options were ignored unless tls=true was included
28       in the URI.
29
30       As    of    1.4.0,   the   mongoc_client_pool_set_ssl_opts   and   mon‐
31       goc_client_set_ssl_opts will not only shallow copy the struct, but will
32       also  copy  the  const  char*. It is therefore no longer needed to make
33       sure the values remain valid after setting them.
34

SEE ALSO

36       • configuring_tls
37
38       • mongoc_client_set_ssl_opts
39
40       • mongoc_client_pool_set_ssl_opts
41

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.17.6                           Jun 03, 2021              MONGOC_SSL_OPT_T(3)
Impressum