From: Pieter Lexis Date: Thu, 16 Nov 2017 16:43:13 +0000 (+0100) Subject: Support csk in the cryptokey endpoint X-Git-Tag: auth-4.1.0~24^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5964%2Fhead;p=thirdparty%2Fpdns.git Support csk in the cryptokey endpoint --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index b5dc9c4a66..cf7ab5e697 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -988,7 +988,7 @@ static void apiZoneCryptokeysPOST(DNSName zonename, HttpRequest *req, HttpRespon bool active = boolFromJson(document, "active", false); bool keyOrZone; - if (stringFromJson(document, "keytype") == "ksk") { + if (stringFromJson(document, "keytype") == "ksk" || stringFromJson(document, "keytype") == "csk") { keyOrZone = true; } else if (stringFromJson(document, "keytype") == "zsk") { keyOrZone = false;