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

SYNOPSIS

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

DESCRIPTION

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

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.25.1                           Nov 08, 2023              MONGOC_SSL_OPT_T(3)
Impressum