sort(signRecords.begin(), signRecords.end(), sharedDNSSECCompare);
string toHash;
- toHash.append(const_cast<RRSIGRecordContent&>(rrc).serialize(DNSName(), true, true));
+ toHash.append(const_cast<RRSIGRecordContent&>(rrc).serialize(DNSName("."), true, true));
toHash.resize(toHash.size() - rrc.d_signature.length()); // chop off the end, don't sign the signature!
- BOOST_FOREACH(shared_ptr<DNSRecordContent>& add, signRecords) {
- toHash.append(qname.toDNSString()); // FIXME400 tolower?
+ for(shared_ptr<DNSRecordContent>& add : signRecords) {
+ toHash.append(qname.toDNSString()); // FIXME400 tolower?
uint16_t tmp=htons(rrc.d_type);
toHash.append((char*)&tmp, 2);
tmp=htons(1); // class