Loading...
Searching...
No Matches
tls.hpp
Go to the documentation of this file.
// Copyright 2009-present MongoDB, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma once
#include <mongocxx/v1/tls-fwd.hpp> // IWYU pragma: export
//
#include <mongocxx/v1/detail/prelude.hpp>
#include <bsoncxx/v1/stdx/optional.hpp>
#include <bsoncxx/v1/stdx/string_view.hpp>
#include <mongocxx/v1/config/export.hpp>
#include <string>
namespace mongocxx {
namespace v1 {
class tls {
private:
class impl;
void* _impl;
public:
MONGOCXX_ABI_EXPORT_CDECL() ~tls();
MONGOCXX_ABI_EXPORT_CDECL() tls(tls&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL(tls&) operator=(tls&& other) noexcept;
MONGOCXX_ABI_EXPORT_CDECL() tls(tls const& other);
MONGOCXX_ABI_EXPORT_CDECL(tls&) operator=(tls const& other);
MONGOCXX_ABI_EXPORT_CDECL() tls();
MONGOCXX_ABI_EXPORT_CDECL(tls&) pem_file(std::string v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::stdx::string_view>) pem_file() const;
MONGOCXX_ABI_EXPORT_CDECL(tls&) pem_password(std::string v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::stdx::string_view>) pem_password() const;
MONGOCXX_ABI_EXPORT_CDECL(tls&) ca_file(std::string v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::stdx::string_view>) ca_file() const;
MONGOCXX_ABI_EXPORT_CDECL(tls&) ca_dir(std::string v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::stdx::string_view>) ca_dir() const;
MONGOCXX_ABI_EXPORT_CDECL(tls&) crl_file(std::string v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bsoncxx::v1::stdx::string_view>) crl_file() const;
MONGOCXX_ABI_EXPORT_CDECL(tls&) allow_invalid_certificates(bool v);
MONGOCXX_ABI_EXPORT_CDECL(bsoncxx::v1::stdx::optional<bool>) allow_invalid_certificates() const;
class internal;
};
} // namespace v1
} // namespace mongocxx
#include <mongocxx/v1/detail/postlude.hpp>
mongocxx::v1::tls::ca_file
tls & ca_file(std::string v)
Set the "ca_file" field.
mongocxx::v1::tls::~tls
~tls()
Destroy this object.
mongocxx::v1::tls::allow_invalid_certificates
tls & allow_invalid_certificates(bool v)
Set the "weak_cert_validation" field.
mongocxx::v1::tls::crl_file
tls & crl_file(std::string v)
Set the "crl_file" field.
mongocxx::v1::tls::ca_dir
tls & ca_dir(std::string v)
Set the "ca_dir" field.
mongocxx::v1::tls::pem_file
tls & pem_file(std::string v)
Set the "pem_file" field.
mongocxx::v1::tls::tls
tls(tls &&other) noexcept
Move constructor.
mongocxx::v1::tls::pem_password
tls & pem_password(std::string v)
Set the "pem_pwd" field.
export.hpp
Provides macros to control the set of symbols exported in the ABI.
MONGOCXX_ABI_EXPORT_CDECL
#define MONGOCXX_ABI_EXPORT_CDECL(...)
Equivalent to MONGOCXX_ABI_EXPORT with MONGOCXX_ABI_CDECL.
Definition export.hpp:52
prelude.hpp
The mongocxx v1 macro guard prelude header.
bsoncxx
The top-level namespace within which all bsoncxx library entities are declared.
mongocxx::v1
Declares entities whose ABI stability is guaranteed for documented symbols.
mongocxx
The top-level namespace within which all mongocxx library entities are declared.
optional.hpp
Provides std::optional-related polyfills for library API usage.
string_view.hpp
Provides std::string_view-related polyfills for library API usage.
tls-fwd.hpp
Declares mongocxx::v1::tls.