BIND 10 trac1138, updated. 9b0785b11da612abf0e60f39950ebed9977b2e65 [1138] {encode, decode}Hex() was erroneously used instead of {encode, decode}Base64()

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Aug 23 12:24:38 UTC 2011


The branch, trac1138 has been updated
       via  9b0785b11da612abf0e60f39950ebed9977b2e65 (commit)
      from  9d3e78f0d8075ad62391ed005e1e82f79f05e2ca (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 9b0785b11da612abf0e60f39950ebed9977b2e65
Author: Dima Volodin <dvv at isc.org>
Date:   Tue Aug 23 08:23:17 2011 -0400

    [1138]  {encode,decode}Hex() was erroneously used instead of
    	{encode,decode}Base64()

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

Summary of changes:
 src/lib/dns/rdata/in_1/dhcid_49.cc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dns/rdata/in_1/dhcid_49.cc b/src/lib/dns/rdata/in_1/dhcid_49.cc
index 0a9a23c..50d3002 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 <exceptions/exceptions.h>
 
 #include <util/buffer.h>
-#include <util/encode/hex.h>
+#include <util/encode/base64.h>
 #include <dns/exceptions.h>
 #include <dns/messagerenderer.h>
 #include <dns/rdata.h>
@@ -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.




More information about the bind10-changes mailing list