From: Dima Volodin Date: Tue, 23 Aug 2011 12:23:17 +0000 (-0400) Subject: [1138] {encode,decode}Hex() was erroneously used instead of X-Git-Tag: perftcpdns_before_epoll~37^2~17^2^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b0785b11da612abf0e60f39950ebed9977b2e65;p=thirdparty%2Fkea.git [1138] {encode,decode}Hex() was erroneously used instead of {encode,decode}Base64() --- diff --git a/src/lib/dns/rdata/in_1/dhcid_49.cc b/src/lib/dns/rdata/in_1/dhcid_49.cc index 0a9a23c792..50d3002f5d 100644 --- a/src/lib/dns/rdata/in_1/dhcid_49.cc +++ b/src/lib/dns/rdata/in_1/dhcid_49.cc @@ -20,7 +20,7 @@ #include #include -#include +#include #include #include #include @@ -52,7 +52,7 @@ DHCID::DHCID(const string& dhcid_str) { stringbuf digestbuf; iss >> &digestbuf; - isc::util::encode::decodeHex(digestbuf.str(), digest_); + isc::util::encode::decodeBase64(digestbuf.str(), digest_); // RFC4701 states DNS software should consider the RDATA section to // be opaque, but there must be at least three bytes in the data: @@ -112,7 +112,7 @@ DHCID::toWire(AbstractMessageRenderer& renderer) const { /// \return A string representation of \c DHCID. string DHCID::toText() const { - return (isc::util::encode::encodeHex(digest_)); + return (isc::util::encode::encodeBase64(digest_)); } /// \brief Compare two instances of \c DHCID RDATA.