From e8a7c88b6cedbd05b183e85dff74c513bfcd774e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Thu, 5 Jan 2023 19:47:05 +0100 Subject: Test config.cpp --- https.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'https.cpp') diff --git a/https.cpp b/https.cpp index 1e8bec1..f096863 100644 --- a/https.cpp +++ b/https.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -35,6 +36,7 @@ #include #include +namespace fs = std::filesystem; namespace beast = boost::beast; // from namespace http = beast::http; // from namespace net = boost::asio; // from @@ -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: -- cgit v1.2.3