Malloy
Loading...
Searching...
No Matches
manager.hpp
1#pragma once
2
3#include <filesystem>
4#include <memory>
5#include <string>
6
7namespace boost::asio::ssl
8{
9 class context;
10}
11
12namespace malloy::tls
13{
20 class manager
21 {
22 public:
30 [[nodiscard]]
31 static
32 std::unique_ptr<boost::asio::ssl::context>
34 const std::filesystem::path& cert_path,
35 const std::filesystem::path& key_path
36 );
37
45 [[nodiscard]]
46 static
47 std::unique_ptr<boost::asio::ssl::context>
49 const std::string& cert,
50 const std::string& key
51 );
52 };
53
54}
Definition: manager.hpp:21
static std::unique_ptr< boost::asio::ssl::context > make_context(const std::filesystem::path &cert_path, const std::filesystem::path &key_path)
Definition: manager.cpp:9