From 397d1dd3ddcb7507e14e3ae378cd47aa686298ed Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sun, 2 Apr 2017 21:01:37 -0700 Subject: [PATCH] fixup! ircd: Move and improve socket listener device. --- ircd/listen.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ircd/listen.cc b/ircd/listen.cc index c8b0e0d56..524ca9bc0 100644 --- a/ircd/listen.cc +++ b/ircd/listen.cc @@ -116,7 +116,11 @@ try if(opts.has("ssl.certificate.file.pem")) { - const std::string filename{opts["ssl.certificate.file.pem"]}; + const std::string filename + { + unquote(opts["ssl.certificate.file.pem"]) + }; + ssl.use_certificate_file(filename, asio::ssl::context::pem); log.info("%s using certificate file '%s'", std::string(*this), @@ -125,7 +129,11 @@ try if(opts.has("ssl.private_key.file.pem")) { - const std::string filename{opts["ssl.private_key.file.pem"]}; + const std::string filename + { + unquote(opts["ssl.private_key.file.pem"]) + }; + ssl.use_private_key_file(filename, asio::ssl::context::pem); log.info("%s using private key file '%s'", std::string(*this), @@ -134,7 +142,7 @@ try a.listen(backlog); - // Allows main() to run and print its log message + // Allow main() to run and print its log message ctx::yield(); } catch(const boost::system::system_error &e)