"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test-syncres_cc.cc" between
pdns-recursor-4.5.5.tar.bz2 and pdns-recursor-4.5.6.tar.bz2

About: PowerDNS - a separate release of the PowerDNS Recursor (without the authoritative nameserver).

test-syncres_cc.cc  (pdns-recursor-4.5.5.tar.bz2):test-syncres_cc.cc  (pdns-recursor-4.5.6.tar.bz2)
skipping to change at line 434 skipping to change at line 434
} }
void addNSEC3UnhashedRecordToLW(const DNSName& domain, const DNSName& zone, cons t std::string& next, const std::set<uint16_t>& types, uint32_t ttl, std::vector< DNSRecord>& records, unsigned int iterations, bool optOut) void addNSEC3UnhashedRecordToLW(const DNSName& domain, const DNSName& zone, cons t std::string& next, const std::set<uint16_t>& types, uint32_t ttl, std::vector< DNSRecord>& records, unsigned int iterations, bool optOut)
{ {
static const std::string salt = "deadbeef"; static const std::string salt = "deadbeef";
std::string hashed = hashQNameWithSalt(salt, iterations, domain); std::string hashed = hashQNameWithSalt(salt, iterations, domain);
addNSEC3RecordToLW(DNSName(toBase32Hex(hashed)) + zone, next, salt, iterations , types, ttl, records, optOut); addNSEC3RecordToLW(DNSName(toBase32Hex(hashed)) + zone, next, salt, iterations , types, ttl, records, optOut);
} }
/* Proves a NODATA (name exists, type does not) but the next owner name is right
behind, so it should not prove anything else unless we are very unlucky */
void addNSEC3NoDataNarrowRecordToLW(const DNSName& domain, const DNSName& zone,
const std::set<uint16_t>& types, uint32_t ttl, std::vector<DNSRecord>& records,
unsigned int iterations, bool optOut)
{
static const std::string salt = "deadbeef";
std::string hashed = hashQNameWithSalt(salt, iterations, domain);
std::string hashedNext(hashed);
incrementHash(hashedNext);
addNSEC3RecordToLW(DNSName(toBase32Hex(hashed)) + zone, hashedNext, salt, iter
ations, types, ttl, records, optOut);
}
void addNSEC3NarrowRecordToLW(const DNSName& domain, const DNSName& zone, const std::set<uint16_t>& types, uint32_t ttl, std::vector<DNSRecord>& records, unsign ed int iterations, bool optOut) void addNSEC3NarrowRecordToLW(const DNSName& domain, const DNSName& zone, const std::set<uint16_t>& types, uint32_t ttl, std::vector<DNSRecord>& records, unsign ed int iterations, bool optOut)
{ {
static const std::string salt = "deadbeef"; static const std::string salt = "deadbeef";
std::string hashed = hashQNameWithSalt(salt, iterations, domain); std::string hashed = hashQNameWithSalt(salt, iterations, domain);
std::string hashedNext(hashed); std::string hashedNext(hashed);
incrementHash(hashedNext); incrementHash(hashedNext);
decrementHash(hashed); decrementHash(hashed);
addNSEC3RecordToLW(DNSName(toBase32Hex(hashed)) + zone, hashedNext, salt, iter ations, types, ttl, records, optOut); addNSEC3RecordToLW(DNSName(toBase32Hex(hashed)) + zone, hashedNext, salt, iter ations, types, ttl, records, optOut);
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)