.\" Man page generated from reStructuredText. . .TH "MONGOC_CLIENT_SET_SSL_OPTS" "3" "Jun 04, 2021" "1.17.6" "libmongoc" .SH NAME mongoc_client_set_ssl_opts \- mongoc_client_set_ssl_opts() . .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 .. .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #ifdef MONGOC_ENABLE_SSL void mongoc_client_set_ssl_opts (mongoc_client_t *client, const mongoc_ssl_opt_t *opts); #endif .ft P .fi .UNINDENT .UNINDENT .sp Sets the TLS (SSL) options to use when connecting to TLS enabled MongoDB servers. .sp The \fBmongoc_ssl_opt_t\fP struct is copied by the client along with the strings it points to (\fBpem_file\fP, \fBpem_pwd\fP, \fBca_file\fP, \fBca_dir\fP, and \fBcrl_file\fP) so they don\(aqt have to remain valid after the call to \fBmongoc_client_set_ssl_opts\fP\&. .sp A call to \fBmongoc_client_set_ssl_opts\fP overrides all TLS options set through the connection string with which the \fBmongoc_client_t\fP was constructed. .sp It is a programming error to call this function on a client from a \fBmongoc_client_pool_t\fP\&. Instead, call \fBmongoc_client_pool_set_ssl_opts\fP on the pool before popping any clients. .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBclient\fP: A \fBmongoc_client_t\fP\&. .IP \(bu 2 \fBopts\fP: A \fBmongoc_ssl_opt_t\fP\&. .UNINDENT .SH AVAILABILITY .sp This feature requires that the MongoDB C driver was compiled with \fB\-DENABLE_SSL\fP\&. .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .