BIND 10 trac2387, updated. 0c8f4051f57e4e1bcc29436bf50a1f7d4ff9e79d [2387] Add NSEC3PARAM lexer constructor implementation

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Mar 12 02:17:26 UTC 2013


The branch, trac2387 has been updated
       via  0c8f4051f57e4e1bcc29436bf50a1f7d4ff9e79d (commit)
      from  926dd635c3bca2100bd6a9975e2368183623c8ac (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0c8f4051f57e4e1bcc29436bf50a1f7d4ff9e79d
Author: Mukund Sivaraman <muks at isc.org>
Date:   Tue Mar 12 07:44:42 2013 +0530

    [2387] Add NSEC3PARAM lexer constructor implementation

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dns/gen-rdatacode.py.in            |    1 +
 src/lib/dns/rdata/generic/nsec3param_51.cc |   12 ++++++++++++
 2 files changed, 13 insertions(+)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/gen-rdatacode.py.in b/src/lib/dns/gen-rdatacode.py.in
index fac1bb1..513193a 100755
--- a/src/lib/dns/gen-rdatacode.py.in
+++ b/src/lib/dns/gen-rdatacode.py.in
@@ -44,6 +44,7 @@ new_rdata_factory_users = [('a', 'in'), ('aaaa', 'in'),
                            ('ns', 'generic'),
                            ('nsec', 'generic'),
                            ('nsec3', 'generic'),
+                           ('nsec3param', 'generic'),
                            ('ptr', 'generic'),
                            ('soa', 'generic'),
                            ('spf', 'generic'),
diff --git a/src/lib/dns/rdata/generic/nsec3param_51.cc b/src/lib/dns/rdata/generic/nsec3param_51.cc
index 5686353..e0a0f58 100644
--- a/src/lib/dns/rdata/generic/nsec3param_51.cc
+++ b/src/lib/dns/rdata/generic/nsec3param_51.cc
@@ -63,6 +63,18 @@ NSEC3PARAM::NSEC3PARAM(const std::string& nsec3param_str) :
                                params.iterations, salt);
 }
 
+NSEC3PARAM::NSEC3PARAM(MasterLexer& lexer, const Name*, MasterLoader::Options,
+                       MasterLoaderCallbacks&) :
+    impl_(NULL)
+{
+    vector<uint8_t> salt;
+    const ParseNSEC3ParamResult params =
+        parseNSEC3ParamFromLexer("NSEC3PARAM", lexer, salt);
+
+    impl_ = new NSEC3PARAMImpl(params.algorithm, params.flags,
+                               params.iterations, salt);
+}
+
 NSEC3PARAM::NSEC3PARAM(InputBuffer& buffer, size_t rdata_len) {
     vector<uint8_t> salt;
     const ParseNSEC3ParamResult params =



More information about the bind10-changes mailing list