From eefd15b3d11d391475d5391f664e83de84343007 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 16 Nov 2017 17:43:13 +0100 Subject: [PATCH] Support csk in the cryptokey endpoint --- pdns/ws-auth.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2