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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eefd15b3d11d391475d5391f664e83de84343007;p=pdns Support csk in the cryptokey endpoint --- diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index b5dc9c4a6..cf7ab5e69 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;