.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_SSL_OPT_T" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX typedef struct { const char *pem_file; const char *pem_pwd; const char *ca_file; const char *ca_dir; const char *crl_file; bool weak_cert_validation; bool allow_invalid_hostname; void *internal; void *padding[6]; } mongoc_ssl_opt_t; .EE .UNINDENT .UNINDENT .SH DESCRIPTION .sp This structure is used to set the TLS options for a \fI\%mongoc_client_t\fP or \fI\%mongoc_client_pool_t\fP\&. .sp Beginning in version 1.2.0, once a pool or client has any TLS options set, all connections use TLS, even if \fBssl=true\fP is omitted from the MongoDB URI. Before, TLS options were ignored unless \fBtls=true\fP was included in the URI. .sp As of 1.4.0, the \fI\%mongoc_client_pool_set_ssl_opts()\fP and \fI\%mongoc_client_set_ssl_opts()\fP will not only shallow copy the struct, but will also copy the \fBconst char*\fP\&. It is therefore no longer needed to make sure the values remain valid after setting them. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%Configuring TLS\fP .fi .sp .nf \fI\%mongoc_client_set_ssl_opts()\fP .fi .sp .nf \fI\%mongoc_client_pool_set_ssl_opts()\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .