From: Mark Schouten Date: Fri, 6 Jun 2014 12:55:07 +0000 (+0200) Subject: Add a 'dnssec'-field in the zonelist so we do not need to request the whole zone... X-Git-Tag: rec-3.6.0~10^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=559115f60c86660849b142a1577c74b312a72a74;p=thirdparty%2Fpdns.git Add a 'dnssec'-field in the zonelist so we do not need to request the whole zone to see if we have dnssec --- 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) {