3#include <boost/asio/ssl/context.hpp>
13 boost::asio::ssl::context
ctx = boost::asio::ssl::context{boost::asio::ssl::context::tls_server};
15 std::variant<std::string, std::filesystem::path>
privateKey;
29 boost::asio::ssl::context
makeSslContext(
const std::string& certificate,
const std::string& privateKey);
Definition authorization.hpp:10
void initializeServerSslContext(SslServerContext &ctx)
A function to simplify the creation of ssl contexts. Make one on your own if you need more sophistica...
Definition make_ssl_context.cpp:6
boost::asio::ssl::context makeSslContext(const std::string &certificate, const std::string &privateKey)
Definition make_ssl_context.cpp:46
Definition make_ssl_context.hpp:12
std::string diffieHellmanParameters
Definition make_ssl_context.hpp:16
std::variant< std::string, std::filesystem::path > certificate
Definition make_ssl_context.hpp:14
std::variant< std::string, std::filesystem::path > privateKey
Definition make_ssl_context.hpp:15
boost::asio::ssl::context ctx
Definition make_ssl_context.hpp:13
std::string password
Definition make_ssl_context.hpp:17