From: Fred Morcos Date: Wed, 15 Feb 2023 14:59:49 +0000 (+0100) Subject: Cleanup dbdnsseckeeper X-Git-Tag: dnsdist-1.8.0-rc1~3^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5f8ab2204714106da92a1b4d6d9706191b640de;p=thirdparty%2Fpdns.git Cleanup dbdnsseckeeper --- diff --git a/pdns/dbdnsseckeeper.cc b/pdns/dbdnsseckeeper.cc index b2e2015656..86b41c4a18 100644 --- a/pdns/dbdnsseckeeper.cc +++ b/pdns/dbdnsseckeeper.cc @@ -682,7 +682,7 @@ bool DNSSECKeeper::getTSIGForAccess(const DNSName& zone, const ComboAddress& /* return false; } -bool DNSSECKeeper::unSecureZone(const DNSName& zone, string& error, string& /* info */) { +bool DNSSECKeeper::unSecureZone(const DNSName& zone, string& error) { // Not calling isSecuredZone(), as it will return false for zones with zero // active keys. DNSSECKeeper::keyset_t keyset=getKeys(zone); diff --git a/pdns/dnsseckeeper.hh b/pdns/dnsseckeeper.hh index ccad4c9838..10503d5345 100644 --- a/pdns/dnsseckeeper.hh +++ b/pdns/dnsseckeeper.hh @@ -235,7 +235,7 @@ public: void getFromMetaOrDefault(const DNSName& zname, const std::string& key, std::string& value, const std::string& defaultvalue); bool getFromMeta(const DNSName& zname, const std::string& key, std::string& value); void getSoaEdit(const DNSName& zname, std::string& value, bool useCache=true); - bool unSecureZone(const DNSName& zone, std::string& error, std::string& info); + bool unSecureZone(const DNSName& zone, std::string& error); bool rectifyZone(const DNSName& zone, std::string& error, std::string& info, bool doTransaction); static void setMaxEntries(size_t maxEntries); diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 522352a8be..1db2c559f3 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -1881,7 +1881,7 @@ static bool disableDNSSECOnZone(DNSSECKeeper& dk, const DNSName& zone) } string error, info; - bool ret = dk.unSecureZone(zone, error, info); + bool ret = dk.unSecureZone(zone, error); if (!ret) { cerr << error << endl; } diff --git a/pdns/ws-auth.cc b/pdns/ws-auth.cc index 11bfc38f37..5b4b87ec1e 100644 --- a/pdns/ws-auth.cc +++ b/pdns/ws-auth.cc @@ -752,7 +752,7 @@ static void updateDomainSettingsFromDocument(UeberBackend& B, const DomainInfo& // "dnssec": false in json if (isDNSSECZone) { string info, error; - if (!dk.unSecureZone(zonename, error, info)) { + if (!dk.unSecureZone(zonename, error)) { throw ApiException("Error while un-securing zone '"+ zonename.toString()+"': " + error); } isDNSSECZone = dk.isSecuredZone(zonename, false);