diff options
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: |