Browse Source

[trac117] added a short note about the NSEC3BASE class

JINMEI Tatuya 14 years ago
parent
commit
17832da870

+ 1 - 1
src/lib/dns/rdata/generic/nsec3_50.cc

@@ -92,7 +92,7 @@ NSEC3::NSEC3(const string& nsec3_str) :
     }
 
     vector<uint8_t> salt;
-    if (salthex != "-") {       // "-" means an 0-length salt
+    if (salthex != "-") {       // "-" means a 0-length salt
         decodeHex(salthex, salt);
     }
     if (salt.size() > 255) {

+ 3 - 0
src/lib/dns/tests/testdata/gen-wiredata.py.in

@@ -278,6 +278,9 @@ class TXT:
                                     wirestring_list[i]))
 
 class NSECBASE:
+    '''Implements rendering NSEC/NSEC3 type bitmaps commonly used for
+    these RRs.  The NSEC and NSEC3 classes will be inherited from this
+    class.'''
     nbitmap = 1                 # number of bitmaps
     block = 0
     maplen = None              # default bitmap length, auto-calculate