From: Charles-Henri Bruyand Date: Wed, 24 Nov 2021 10:37:10 +0000 (+0100) Subject: Apply rgacogne's suggestions from code review, thanks :) X-Git-Tag: auth-4.7.0-alpha1~115^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11027%2Fhead;p=thirdparty%2Fpdns.git Apply rgacogne's suggestions from code review, thanks :) --- 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