BIND 10 trac782, updated. a1420dabc6ace739cb21044184654717a32604a5 [trac782] set the unknown hash algorithm enum value to 0, avoid that each time we add new alogirthm, we have to modify the it since it is the last one

BIND 10 source code commits bind10-changes at lists.isc.org
Thu May 12 07:09:20 UTC 2011


The branch, trac782 has been updated
       via  a1420dabc6ace739cb21044184654717a32604a5 (commit)
      from  cd689c463a59fa5fee72d3f977835e0369eb3650 (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 a1420dabc6ace739cb21044184654717a32604a5
Author: feng <hanfeng at cnnic.cn>
Date:   Thu May 12 15:08:03 2011 +0800

    [trac782] set the unknown hash algorithm enum value to 0, avoid that each time we add new alogirthm, we have to modify the it since it is the last one

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

Summary of changes:
 src/lib/cryptolink/cryptolink.h |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/lib/cryptolink/cryptolink.h b/src/lib/cryptolink/cryptolink.h
index c9415b4..d0f7d38 100644
--- a/src/lib/cryptolink/cryptolink.h
+++ b/src/lib/cryptolink/cryptolink.h
@@ -29,19 +29,19 @@ namespace cryptolink {
 
 /// \brief Hash algorithm identifiers
 enum HashAlgorithm {
-    MD5 = 0,            ///< MD5
-    SHA1 = 1,           ///< SHA-1
-    SHA256 = 2,         ///< SHA-256
-    SHA224 = 3,         ///< SHA-224
-    SHA384 = 4,         ///< SHA-384
-    SHA512 = 5,         ///< SHA-512
-
-    UNKNOWN_HASH = 6    ///< This value can be used in conversion
+    UNKNOWN_HASH = 0,   ///< This value can be used in conversion
                         ///  functions, to be returned when the
                         ///  input is unknown (but a value MUST be
                         ///  returned), for instance when the input
                         ///  is a Name or a string, and the return
                         ///  value is a HashAlgorithm.
+    MD5 = 1,            ///< MD5
+    SHA1 = 2,           ///< SHA-1
+    SHA256 = 3,         ///< SHA-256
+    SHA224 = 4,         ///< SHA-224
+    SHA384 = 5,         ///< SHA-384
+    SHA512 = 6          ///< SHA-512
+
 };
 
 // Forward declaration for createHMAC()




More information about the bind10-changes mailing list