54 explicit operator
v1::
tls()
const {
58 ret.
pem_file(std::string{_pem_file->view()});
66 ret.
ca_file(std::string{_ca_file->view()});
70 ret.
ca_dir(std::string{_ca_dir->view()});
74 ret.
crl_file(std::string{_crl_file->view()});
77 if (_allow_invalid_certificates) {
130 return _pem_password;
169 _ca_dir = std::move(
ca_dir);
227 return _allow_invalid_certificates;
252 return {std::move(v)};
A polyfill for std::optional<T>.
Definition optional.hpp:799
A view-or-value variant type for strings.
Definition view_or_value.hpp:41
tls()=default
Default initialization.
Options related to TLS configuration.
Definition tls.hpp:48
tls & ca_file(std::string v)
Set the "ca_file" field.
tls & allow_invalid_certificates(bool v)
Set the "weak_cert_validation" field.
tls & crl_file(std::string v)
Set the "crl_file" field.
tls & ca_dir(std::string v)
Set the "ca_dir" field.
tls & pem_file(std::string v)
Set the "pem_file" field.
tls & pem_password(std::string v)
Set the "pem_pwd" field.
Used by mongocxx::v_noabi::options::client::tls_opts.
Definition tls.hpp:39
tls & ca_dir(bsoncxx::v_noabi::string::view_or_value ca_dir)
The path to the Certificate Authority directory.
Definition tls.hpp:168
tls & pem_file(bsoncxx::v_noabi::string::view_or_value pem_file)
The path to the .pem file containing a public key certificate and its associated private key.
Definition tls.hpp:95
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & pem_file() const
Retrieves the current path to the .pem file.
Definition tls.hpp:105
tls & allow_invalid_certificates(bool allow_invalid_certificates)
If true, the driver will not verify the server's CA file.
Definition tls.hpp:216
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & pem_password() const
Retrieves the current decryption pass phrase.
Definition tls.hpp:129
tls & crl_file(bsoncxx::v_noabi::string::view_or_value crl_file)
The path to the .pem file that contains revoked certificates.
Definition tls.hpp:192
tls & ca_file(bsoncxx::v_noabi::string::view_or_value ca_file)
The path to the .pem file that contains the root certificate chain from the Certificate Authority.
Definition tls.hpp:144
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & ca_dir() const
Retrieves the current path to the CA directory.
Definition tls.hpp:178
bsoncxx::v_noabi::stdx::optional< bool > const & allow_invalid_certificates() const
Retrieves whether or not the driver will check the server's CA file.
Definition tls.hpp:226
tls()=default
Default initialization.
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & ca_file() const
Retrieves the current path to the CA file.
Definition tls.hpp:154
tls & pem_password(bsoncxx::v_noabi::string::view_or_value pem_password)
The pass phrase used to decrypt an encrypted PEM file.
Definition tls.hpp:119
bsoncxx::v_noabi::stdx::optional< bsoncxx::v_noabi::string::view_or_value > const & crl_file() const
Retrieves the current path to the .pem file that contains revoked certificates.
Definition tls.hpp:202
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
The mongocxx v_noabi macro guard postlude header.
The mongocxx v_noabi macro guard prelude header.
Declares entities whose ABI stability is guaranteed for documented symbols.
Declares entities representing options to use with various commands.
Declares entities whose ABI stability is NOT guaranteed.
v1::bulk_write to_v1(v_noabi::bulk_write v)
Convert to the mongocxx::v1 equivalent of v.
Definition bulk_write.hpp:162
v_noabi::bulk_write from_v1(v1::bulk_write v)
Convert to the mongocxx::v_noabi equivalent of v.
Definition bulk_write.hpp:155
The top-level namespace within which all mongocxx library entities are declared.
Provides bsoncxx::v_noabi::string::view_or_value.
Provides mongocxx::v1::tls.
Provides std::optional-related polyfills for library API usage.
Declares mongocxx::v_noabi::options::tls.