Show
Ignore:
Timestamp:
01/10/11 09:39:47 (2 years ago)
Author:
ahu
Message:

add support for unsalted nsec3 hashes ('1 0 1 -')

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/slavecommunicator.cc

    r1819 r1852  
    7777    DNSSECKeeper dk; 
    7878    bool dnssecZone = false; 
     79    bool haveNSEC3=false; 
    7980    if(dk.haveActiveKSKFor(domain)) { 
    8081      dnssecZone=true; 
    81       dk.getNSEC3PARAM(domain, &ns3pr, &narrow); 
     82      haveNSEC3=dk.getNSEC3PARAM(domain, &ns3pr, &narrow); 
    8283      string hashed; 
    83       if(ns3pr.d_salt.empty())  
     84      if(!haveNSEC3)  
    8485        cerr<<"Adding NSEC ordering information"<<endl; 
    8586      else if(!narrow) 
     
    134135        }while(chopOff(shorter)); 
    135136       
    136         if(ns3pr.d_salt.empty()) // NSEC 
     137        if(!haveNSEC3) // NSEC 
    137138          di.backend->updateDNSSECOrderAndAuth(domain_id, domain, qname, auth); 
    138139        else {