roar
Loading...
Searching...
No Matches
make_ssl_context.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <boost/asio/ssl/context.hpp>
4
5#include <string>
6#include <filesystem>
7#include <variant>
8
9namespace Roar
10{
12 {
13 boost::asio::ssl::context ctx = boost::asio::ssl::context{boost::asio::ssl::context::tls_server};
14 std::variant<std::string, std::filesystem::path> certificate;
15 std::variant<std::string, std::filesystem::path> privateKey;
16 std::string diffieHellmanParameters = "";
17 std::string password = "";
18 };
19
28
29 boost::asio::ssl::context makeSslContext(const std::string& certificate, const std::string& privateKey);
30}
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