From: Pieter Lexis Date: Mon, 14 Jan 2019 16:42:56 +0000 (+0100) Subject: Use algo nums to compare default-*-algorithm X-Git-Tag: rec-4.2.0-alpha1~19^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efc105914b97582815c0beaffd17282b2cb2d619;p=pdns Use algo nums to compare default-*-algorithm --- diff --git a/pdns/common_startup.cc b/pdns/common_startup.cc index 1dd7c0956..eed0cbb0e 100644 --- a/pdns/common_startup.cc +++ b/pdns/common_startup.cc @@ -557,33 +557,41 @@ void mainthread() } catch(...) {} - // Some sanity checking on default key settings - bool hadKeyError = false; - for (const string& algotype : {"ksk", "zsk"}) { - int algo, size; - if (::arg()["default-"+algotype+"-algorithm"].empty()) - continue; - algo = DNSSECKeeper::shorthand2algorithm(::arg()["default-"+algotype+"-algorithm"]); - size = ::arg().asNum("default-"+algotype+"-size"); - if (algo == -1) { - g_log<