summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-05 19:47:05 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-05 19:47:05 +0100
commite8a7c88b6cedbd05b183e85dff74c513bfcd774e (patch)
tree5d0fe8c8b387ca4846b0ec76a4955aa92c363f21 /https.cpp
parentd2690b7c3639cc1555b34d002de782976cbb6845 (diff)
Test config.cpp
Diffstat (limited to 'https.cpp')
-rw-r--r--https.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/https.cpp b/https.cpp
index 1e8bec1..f096863 100644
--- a/https.cpp
+++ b/https.cpp
@@ -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: