summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/rdata
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@isc.org>2014-02-11 08:48:50 +0100
committerMukund Sivaraman <muks@isc.org>2014-02-11 08:49:37 +0100
commita5d2806bff9656a3ea7900c8dba4101bf3c86ca8 (patch)
tree74496a2d53da5e3cffab26e48ce550f47b130383 /src/lib/dns/rdata
parent[2512] Simplify CAA implementation using CharStringData type (diff)
downloadkea-a5d2806bff9656a3ea7900c8dba4101bf3c86ca8.tar.xz
kea-a5d2806bff9656a3ea7900c8dba4101bf3c86ca8.zip
[2512] Add CAA::getValue()
Diffstat (limited to 'src/lib/dns/rdata')
-rw-r--r--src/lib/dns/rdata/generic/caa_257.cc5
-rw-r--r--src/lib/dns/rdata/generic/caa_257.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dns/rdata/generic/caa_257.cc b/src/lib/dns/rdata/generic/caa_257.cc
index 97b9ba32bb..a031ab1ede 100644
--- a/src/lib/dns/rdata/generic/caa_257.cc
+++ b/src/lib/dns/rdata/generic/caa_257.cc
@@ -295,5 +295,10 @@ CAA::getTag() const {
return (impl_->tag_);
}
+const std::vector<uint8_t>&
+CAA::getValue() const {
+ return (impl_->value_);
+}
+
// END_RDATA_NAMESPACE
// END_ISC_NAMESPACE
diff --git a/src/lib/dns/rdata/generic/caa_257.h b/src/lib/dns/rdata/generic/caa_257.h
index 69e3936d82..e06b250340 100644
--- a/src/lib/dns/rdata/generic/caa_257.h
+++ b/src/lib/dns/rdata/generic/caa_257.h
@@ -45,6 +45,7 @@ public:
///
uint8_t getFlags() const;
const std::string& getTag() const;
+ const std::vector<uint8_t>& getValue() const;
private:
CAAImpl* constructFromLexer(MasterLexer& lexer);