Malloy
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
malloy::tls::manager Class Reference

#include <manager.hpp>

Static Public Member Functions

static std::unique_ptr< boost::asio::ssl::context > make_context (const std::filesystem::path &cert_path, const std::filesystem::path &key_path)
 
static std::unique_ptr< boost::asio::ssl::context > make_context (const std::string &cert, const std::string &key)
 

Detailed Description

Manager class for TLS.

ToDo: Allow specifying the ciperlists (TLS 1.2 and below) / ciphersuites (TLS 1.3+) See https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_ciphersuites.html

Member Function Documentation

◆ make_context() [1/2]

std::unique_ptr< boost::asio::ssl::context > manager::make_context ( const std::filesystem::path &  cert_path,
const std::filesystem::path &  key_path 
)
static

Create a TLS context.

Parameters
cert_pathPath to the cert file.
key_pathPath to he key file.
Returns
The context (if any)
Here is the call graph for this function:

◆ make_context() [2/2]

auto manager::make_context ( const std::string &  cert,
const std::string &  key 
)
static

Create a TLS context.

Parameters
certThe certificate.
keyThe key.
Returns
The context (if any)

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