]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
remove unused variable from TSIGGrantsAccess()
authorKees Monshouwer <mind04@monshouwer.org>
Mon, 21 Jul 2014 21:17:24 +0000 (23:17 +0200)
committermind04 <mind04@monshouwer.org>
Mon, 21 Jul 2014 21:53:27 +0000 (23:53 +0200)
pdns/dbdnsseckeeper.cc
pdns/dnsseckeeper.hh
pdns/tcpreceiver.cc

index 3ef4206852ed39715617b705567a819ae7189a9a..1c7c7242f4b5f1adb836b186a508bbf683123091 100644 (file)
@@ -397,7 +397,7 @@ bool DNSSECKeeper::getPreRRSIGs(DNSBackend& db, const std::string& signer, const
         return true;
 }
 
-bool DNSSECKeeper::TSIGGrantsAccess(const string& zone, const string& keyname, const string& algorithm)
+bool DNSSECKeeper::TSIGGrantsAccess(const string& zone, const string& keyname)
 {
   vector<string> allowed;
   
index da9269a7611f18af1dfcc97defda14458da82590..1707aef0b8e820e3bbfdceb2e63760ecd5d0f282 100644 (file)
@@ -91,7 +91,7 @@ public:
   bool setPresigned(const std::string& zname);
   bool unsetPresigned(const std::string& zname);
 
-  bool TSIGGrantsAccess(const string& zone, const string& keyname, const string& algorithm);
+  bool TSIGGrantsAccess(const string& zone, const string& keyname);
   bool getTSIGForAccess(const string& zone, const string& master, string* keyname);
   
   void startTransaction()
index 2fad9907f719508ac8ff527c2ee2ce0516e3b8d0..4cfefcb2cd43e564ce5b765b6188c01668818859 100644 (file)
@@ -400,7 +400,7 @@ bool TCPNameserver::canDoAXFR(shared_ptr<DNSPacket> q)
     
     DNSSECKeeper dk;
     
-    if(!dk.TSIGGrantsAccess(q->qdomain, keyname, trc.d_algoName)) {
+    if(!dk.TSIGGrantsAccess(q->qdomain, keyname)) {
       L<<Logger::Error<<"AXFR '"<<q->qdomain<<"' denied: key with name '"<<keyname<<"' and algorithm '"<<trc.d_algoName<<"' does not grant access to zone"<<endl;
       return false;
     }