Changeset 1614 for trunk/pdns/pdns/nsecrecords.cc
- Timestamp:
- 05/13/10 19:16:47 (3 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/nsecrecords.cc (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/nsecrecords.cc
r1611 r1614 109 109 110 110 rtr.xfrHexBlob(d_salt); 111 rtr.xfr HexBlob(d_nexthash);112 111 rtr.xfrBase32HexBlob(d_nexthash); 112 113 113 while(!rtr.eof()) { 114 114 uint16_t type; … … 128 128 pw.xfr8BitInt(d_nexthash.length()); 129 129 pw.xfrBlob(d_nexthash); 130 130 131 131 uint8_t res[34]; 132 132 memset(res, 0, sizeof(res)); … … 158 158 159 159 pr.xfr8BitInt(len); 160 160 161 pr.xfrBlob(ret->d_nexthash, len); 161 162 162 163 string bitmap; 163 164 pr.xfrBlob(bitmap); … … 172 173 173 174 if(bitmap[0]) 174 throw MOADNSException("Can't deal with NSEC mappings > 255 yet");175 throw MOADNSException("Can't deal with NSEC3 mappings > 255 yet"); 175 176 176 177 unsigned int bitmaplen=bitmap[1]; 177 178 if(bitmap.size()!=2+bitmaplen) 178 throw MOADNSException("Can't deal with multi-part NSEC mappings yet");179 throw MOADNSException("Can't deal with multi-part NSEC3 mappings yet"); 179 180 180 181 for(unsigned int n=0 ; n < bitmaplen ; ++n) { … … 199 200 rtw.xfrHexBlob(d_salt); 200 201 rtw.xfrBase32HexBlob(d_nexthash); 201 202 202 for(set<uint16_t>::const_iterator i=d_set.begin(); i!=d_set.end(); ++i) { 203 203 ret+=" "; … … 223 223 RecordTextReader rtr(content, zone); 224 224 rtr.xfr8BitInt(d_algorithm); 225 rtr.xfr8BitInt(d_flags);226 rtr.xfr16BitInt(d_iterations);225 rtr.xfr8BitInt(d_flags); 226 rtr.xfr16BitInt(d_iterations); 227 227 rtr.xfrHexBlob(d_salt); 228 228 }