]> granicus.if.org Git - pdns/commitdiff
Support csk in the cryptokey endpoint
authorPieter Lexis <pieter.lexis@powerdns.com>
Thu, 16 Nov 2017 16:43:13 +0000 (17:43 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 17 Nov 2017 09:01:56 +0000 (10:01 +0100)
pdns/ws-auth.cc

index b5dc9c4a662300cf607ecaa70313395f8c285cc0..cf7ab5e697444c6ffcce73f500255f587e668682 100644 (file)
@@ -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;