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
31       mongoc_client_set_ssl_opts() will not only shallow copy the struct, but
32       will  also  copy  the  const char*. It is therefore no longer needed to
33       make sure the values remain valid after setting them.
34
35       SEE ALSO:
36          Configuring TLS
37
38          mongoc_client_set_ssl_opts()
39
40          mongoc_client_pool_set_ssl_opts()
41
42

AUTHOR

44       MongoDB, Inc
45
47       2017-present, MongoDB, Inc
48
49
50
51
521.24.3                           Aug 17, 2023              MONGOC_SSL_OPT_T(3)
Impressum