]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1894] Add missing method
authorMukund Sivaraman <muks@isc.org>
Thu, 16 Jan 2014 08:58:53 +0000 (14:28 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 16 Jan 2014 08:58:53 +0000 (14:28 +0530)
src/bin/auth/tests/query_unittest.cc

index f374a8738455dfa759c72ab5ff58e6044b99fcdb..118f75fd4d4e51d025d44e0461afd2d826825015 100644 (file)
@@ -22,6 +22,7 @@
 #include <dns/message.h>
 #include <dns/master_loader.h>
 #include <dns/name.h>
+#include <dns/labelsequence.h>
 #include <dns/nsec3hash.h>
 #include <dns/opcode.h>
 #include <dns/rcode.h>
@@ -245,6 +246,13 @@ public:
         isc_throw(isc::Unexpected, "unexpected name for NSEC3 test: "
                   << name);
     }
+    virtual string calculate(const LabelSequence& ls) const {
+        assert(ls.isAbsolute());
+        // This is not very optimal, but it's only going to be used in
+        // tests.
+        const Name name(ls.toText());
+        return (calculate(name));
+    }
     virtual bool match(const rdata::generic::NSEC3PARAM&) const {
         return (true);
     }