ikev2: Add new authentication method defined by RFC 7427
authorTobias Brunner <tobias@strongswan.org>
Mon, 23 Feb 2015 12:48:34 +0000 (13:48 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 4 Mar 2015 12:54:08 +0000 (13:54 +0100)
src/libcharon/sa/authenticator.c
src/libcharon/sa/authenticator.h

index a3d67ed..c6cf048 100644 (file)
@@ -31,13 +31,14 @@ ENUM_BEGIN(auth_method_names, AUTH_RSA, AUTH_DSS,
        "RSA signature",
        "pre-shared key",
        "DSS signature");
-ENUM_NEXT(auth_method_names, AUTH_ECDSA_256, AUTH_NULL, AUTH_DSS,
+ENUM_NEXT(auth_method_names, AUTH_ECDSA_256, AUTH_DS, AUTH_DSS,
        "ECDSA-256 signature",
        "ECDSA-384 signature",
        "ECDSA-521 signature",
        "secure password method",
-       "NULL authentication");
-ENUM_NEXT(auth_method_names, AUTH_BLISS, AUTH_BLISS, AUTH_NULL,
+       "NULL authentication",
+       "digital signature");
+ENUM_NEXT(auth_method_names, AUTH_BLISS, AUTH_BLISS, AUTH_DS,
        "BLISS signature");
 ENUM_NEXT(auth_method_names, AUTH_XAUTH_INIT_PSK, AUTH_HYBRID_RESP_RSA, AUTH_BLISS,
        "XAuthInitPSK",
index aefb942..33a0076 100644 (file)
@@ -85,6 +85,11 @@ enum auth_method_t {
        AUTH_NULL = 13,
 
        /**
+        * Digital Signature as specified in RFC 7427
+        */
+       AUTH_DS = 14,
+
+       /**
         * BLISS Authentication Method
         */
        AUTH_BLISS = 220,