moved AUTH_HMAC_MD5_128 to IANA defined number
authorMartin Willi <martin@strongswan.org>
Thu, 2 Apr 2009 13:53:20 +0000 (13:53 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 2 Apr 2009 13:53:20 +0000 (13:53 -0000)
src/libstrongswan/crypto/signers/signer.c
src/libstrongswan/crypto/signers/signer.h

index 377c2b9..8d36243 100644 (file)
 ENUM_BEGIN(integrity_algorithm_names, AUTH_UNDEFINED, AUTH_HMAC_SHA1_128,
        "UNDEFINED",
        "AUTH_HMAC_SHA1_128");
-ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_MD5_96, AUTH_AES_XCBC_96, AUTH_HMAC_SHA1_128,
+ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_MD5_96, AUTH_HMAC_MD5_128, AUTH_HMAC_SHA1_128,
        "HMAC_MD5_96",
        "HMAC_SHA1_96",
        "DES_MAC",
        "KPDK_MD5",
-       "AES_XCBC_96");
-ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_SHA2_256_128, AUTH_HMAC_SHA2_512_256, AUTH_AES_XCBC_96,
+       "AES_XCBC_96",
+       "HMAC_MD5_128");
+ENUM_NEXT(integrity_algorithm_names, AUTH_HMAC_SHA2_256_128, AUTH_HMAC_SHA2_512_256, AUTH_HMAC_MD5_128,
        "AUTH_HMAC_SHA2_256_128",
        "AUTH_HMAC_SHA2_384_192",
        "AUTH_HMAC_SHA2_512_256");
index 9bde094..992cce6 100644 (file)
@@ -43,6 +43,8 @@ enum integrity_algorithm_t {
        AUTH_DES_MAC = 3,
        AUTH_KPDK_MD5 = 4,
        AUTH_AES_XCBC_96 = 5,
+       /** RFC4595, used for RADIUS */
+       AUTH_HMAC_MD5_128 = 6,
        /** Implemented via hmac_signer_t */
        AUTH_HMAC_SHA2_256_128 = 12,
        /** Implemented via hmac_signer_t */
@@ -51,8 +53,6 @@ enum integrity_algorithm_t {
        AUTH_HMAC_SHA2_512_256 = 14,
        /** Implemented via hmac_signer_t */
        AUTH_HMAC_SHA1_128 = 1025,
-       /** Implemented via hmac_signer_t */
-       AUTH_HMAC_MD5_128 = 1026,
 };
 
 /**