]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1611] added a note about how to identify whether zone is signed with NSEC(3)
authorJINMEI Tatuya <jinmei@isc.org>
Wed, 25 Jan 2012 20:08:28 +0000 (12:08 -0800)
committerJINMEI Tatuya <jinmei@isc.org>
Wed, 25 Jan 2012 20:08:28 +0000 (12:08 -0800)
in the database zone finder.  right now it's a TODO and the current
implementation is a kind of workaround.

src/lib/datasrc/database.cc

index 9eaa162bbbde8524b924e6e6b6c96b86e03e4790..1dc5359c0a95f5b737154f8009df2ddf9df03f47 100644 (file)
@@ -704,6 +704,9 @@ DatabaseClient::Finder::findOnNameResult(const Name& name,
     // For wildcard case with DNSSEC required, the caller would need to know
     // whether it's NSEC or NSEC3 signed.  So we need to do an additional
     // search here, even though the NSEC RR may not be returned.
+    // TODO: this part should be revised when we support NSEC3; ideally we
+    // should use more effective and efficient way to identify (whether and)
+    // in which way the zone is signed.
     if (wild && (options & FIND_DNSSEC) != 0 &&
         found.second.find(RRType::NSEC()) != found.second.end()) {
         flags = flags | RESULT_NSEC_SIGNED;