Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::network::ClientTlsContext Class Reference

#include <TlsContext.hpp>

Public Member Functions

 ClientTlsContext (bool verify_peer=true, const std::string &ca_file="")
 
 ~ClientTlsContext ()
 
 ClientTlsContext (const ClientTlsContext &)=delete
 
ClientTlsContext & operator= (const ClientTlsContext &)=delete
 
SSL_CTX * get () const
 

Private Attributes

SSL_CTX * ctx_ {nullptr}
 

Constructor & Destructor Documentation

◆ ClientTlsContext() [1/2]

orbit::network::ClientTlsContext::ClientTlsContext ( bool  verify_peer = true,
const std::string &  ca_file = "" 
)
explicit
Parameters
verify_peerVerify the server certificate chain. Hostname checks are enabled per connection with SSL_set1_host().
ca_fileOptional PEM bundle of trusted CAs; the system store is used when empty.

◆ ~ClientTlsContext()

orbit::network::ClientTlsContext::~ClientTlsContext ( )

◆ ClientTlsContext() [2/2]

orbit::network::ClientTlsContext::ClientTlsContext ( const ClientTlsContext &  )
delete

Member Function Documentation

◆ get()

SSL_CTX * orbit::network::ClientTlsContext::get ( ) const
inline

◆ operator=()

ClientTlsContext & orbit::network::ClientTlsContext::operator= ( const ClientTlsContext &  )
delete

Member Data Documentation

◆ ctx_

SSL_CTX* orbit::network::ClientTlsContext::ctx_ {nullptr}
private

The documentation for this class was generated from the following file: