]> granicus.if.org Git - pdns/commitdiff
silence some debugging output, clarify some comments
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 30 Dec 2010 14:39:47 +0000 (14:39 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 30 Dec 2010 14:39:47 +0000 (14:39 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1768 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnspacket.cc
pdns/dnssecinfra.cc

index d3b42c897b0229b14eccc525f186271c7d43c595..10afcc0c0462d96ff3dd4e9986c5a7fb264c669e 100644 (file)
@@ -352,7 +352,7 @@ void DNSPacket::wrapup(void)
       vector<shared_ptr<DNSRecordContent> > toSign;
 
       for(pos=d_rrs.begin(); pos < d_rrs.end(); ++pos) {
-        // this needs to deal with the 'prio' mismatch!
+        // this needs to deal with the 'prio' mismatch:
         if(pos->qtype.getCode()==QType::MX || pos->qtype.getCode() == QType::SRV) {  
           pos->content = lexical_cast<string>(pos->priority) + " " + pos->content;
         }
index a6661871d95152a43e344d69298c74eccfaacd4e..3ab57d65f3e096f72c188b46885ca8a2b654e8e2 100644 (file)
@@ -234,7 +234,7 @@ DNSKEYRecordContent getDNSKEYFor(const std::string& keyRepositoryDir, const std:
   }
 }
 
-
+// XXXX FIXME THINK ABOUT LOCKING HERE
 map<pair<string, uint16_t>, RRSIGRecordContent> g_rrsigs;
 
 void fillOutRRSIG(const std::string& keyrepodir, const std::string& signQName, RRSIGRecordContent& rrc, const std::string& hash, vector<shared_ptr<DNSRecordContent> >& toSign, bool withKSK) 
@@ -246,7 +246,7 @@ void fillOutRRSIG(const std::string& keyrepodir, const std::string& signQName, R
   rrc.d_algorithm = drc.d_algorithm;
   
   if(g_rrsigs.count(make_pair(hash, rrc.d_tag))) {
-    cerr<<"RRSIG cache hit !"<<endl;
+    // cerr<<"RRSIG cache hit !"<<endl;
     rrc = g_rrsigs[make_pair(hash, rrc.d_tag)];
     return;
   }
@@ -303,7 +303,7 @@ int getRRSIGForRRSET(const std::string& keyrepodir, const std::string signQName,
 
 void addSignature(const std::string& keyrepodir, const std::string signQName, const std::string& wildcardname, uint16_t signQType, uint32_t signTTL, DNSPacketWriter::Place signPlace, vector<shared_ptr<DNSRecordContent> >& toSign, DNSPacketWriter& pw)
 {
-  cerr<<"Asked to sign '"<<signQName<<"'|"<<DNSRecordContent::NumberToType(signQType)<<", "<<toSign.size()<<" records\n";
+  // cerr<<"Asked to sign '"<<signQName<<"'|"<<DNSRecordContent::NumberToType(signQType)<<", "<<toSign.size()<<" records\n";
 
   RRSIGRecordContent rrc;
   if(toSign.empty())
@@ -334,7 +334,7 @@ std::string hashQNameWithSalt(unsigned int times, const std::string& salt, const
   toHash.assign(simpleCompress(toLower(qname)));
   toHash.append(salt);
 
-  cerr<<makeHexDump(toHash)<<endl;
+//  cerr<<makeHexDump(toHash)<<endl;
   unsigned char hash[20];
   for(;;) {
     sha1((unsigned char*)toHash.c_str(), toHash.length(), hash);