diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-05 19:47:05 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-05 19:47:05 +0100 |
commit | e8a7c88b6cedbd05b183e85dff74c513bfcd774e (patch) | |
tree | 5d0fe8c8b387ca4846b0ec76a4955aa92c363f21 /https.cpp | |
parent | d2690b7c3639cc1555b34d002de782976cbb6845 (diff) |
Test config.cpp
Diffstat (limited to 'https.cpp')
-rw-r--r-- | https.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -27,6 +27,7 @@ #include <algorithm> #include <cstddef> #include <cstdlib> +#include <filesystem> #include <functional> #include <iostream> #include <memory> @@ -35,6 +36,7 @@ #include <thread> #include <vector> +namespace fs = std::filesystem; namespace beast = boost::beast; // from <boost/beast.hpp> namespace http = beast::http; // from <boost/beast/http.hpp> namespace net = boost::asio; // from <boost/asio.hpp> @@ -468,7 +470,7 @@ private: /* Load a signed certificate into the ssl context, and configure the context for use with a server. */ -void load_server_certificate(boost::asio::ssl::context& ctx, fs::path cert_path, fs::path key_path) +void load_server_certificate(boost::asio::ssl::context& ctx, const fs::path& cert_path, const fs::path& key_path) { /* The certificate was generated from CMD.EXE on Windows 10 using: |