summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
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: