From 559115f60c86660849b142a1577c74b312a72a74 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Fri, 6 Jun 2014 14:55:07 +0200 Subject: [PATCH] Add a 'dnssec'-field in the zonelist so we do not need to request the whole zone to see if we have dnssec --- pdns/ws-auth.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 5e10c8fffd..48f6a4e1f5 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -549,6 +549,7 @@ static void apiZoneCryptokeys(HttpRequest* req, HttpResponse* resp) { static void apiServerZones(HttpRequest* req, HttpResponse* resp) { UeberBackend B; + DNSSECKeeper dk; if (req->method == "POST" && !::arg().mustDo("experimental-api-readonly")) { DomainInfo di; Document document; @@ -687,6 +688,7 @@ static void apiServerZones(HttpRequest* req, HttpResponse* resp) { jdi.AddMember("url", jurl, doc.GetAllocator()); jdi.AddMember("name", di.zone.c_str(), doc.GetAllocator()); jdi.AddMember("kind", di.getKindString(), doc.GetAllocator()); + jdi.AddMember("dnssec", dk.isSecuredZone(di.zone.c_str()), doc.GetAllocator()); Value masters; masters.SetArray(); BOOST_FOREACH(const string& master, di.masters) { -- 2.47.2