From afdad06633c537144eee5d2f2cfc23211fff52d8 Mon Sep 17 00:00:00 2001 From: Charles-Henri Bruyand Date: Wed, 24 Nov 2021 11:37:10 +0100 Subject: [PATCH] Apply rgacogne's suggestions from code review, thanks :) --- pdns/dnsdist-lua.cc | 6 +++--- pdns/dnsdistdist/docs/reference/config.rst | 12 +++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/pdns/dnsdist-lua.cc b/pdns/dnsdist-lua.cc index 769f62d794..4793ce3568 100644 --- a/pdns/dnsdist-lua.cc +++ b/pdns/dnsdist-lua.cc @@ -132,13 +132,13 @@ static void parseLocalBindVars(boost::optional vars, bool& reusePor } #if defined(HAVE_DNS_OVER_TLS) || defined(HAVE_DNS_OVER_HTTPS) -static bool loadTLSCertificateAndKeys(const std::string& context, std::vector& pairs, boost::variant, std::vector>, std::vector>>> certFiles, boost::variant>> keyFiles, std::optional password = std::nullopt) +static bool loadTLSCertificateAndKeys(const std::string& context, std::vector& pairs, boost::variant, std::vector>, std::vector>>> certFiles, boost::variant>> keyFiles) { if (certFiles.type() == typeid(std::string) && keyFiles.type() == typeid(std::string)) { auto certFile = boost::get(certFiles); auto keyFile = boost::get(keyFiles); pairs.clear(); - pairs.emplace_back(certFile, keyFile, password); + pairs.emplace_back(certFile, keyFile); } else if (certFiles.type() == typeid(std::shared_ptr)) { auto cert = boost::get>(certFiles); @@ -158,7 +158,7 @@ static bool loadTLSCertificateAndKeys(const std::string& context, std::vector