added IKEv2 Generic Secure Password Authentication Method
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 3 Apr 2012 10:49:05 +0000 (12:49 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 3 Apr 2012 10:49:05 +0000 (12:49 +0200)
src/libcharon/sa/authenticators/authenticator.c
src/libcharon/sa/authenticators/authenticator.h

index 83f5fba..9ffe661 100644 (file)
@@ -28,11 +28,12 @@ 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_ECDSA_521, AUTH_DSS,
+ENUM_NEXT(auth_method_names, AUTH_ECDSA_256, AUTH_GSPM, AUTH_DSS,
        "ECDSA-256 signature",
        "ECDSA-384 signature",
-       "ECDSA-521 signature");
-ENUM_END(auth_method_names, AUTH_ECDSA_521);
+       "ECDSA-521 signature",
+       "secure password method");
+ENUM_END(auth_method_names, AUTH_GSPM);
 
 /**
  * Described in header.
index d27e006..5042e4a 100644 (file)
@@ -67,6 +67,12 @@ enum auth_method_t {
         * ECDSA with SHA-512 on the P-521 curve as specified in RFC 4754
         */
        AUTH_ECDSA_521 = 11,
+
+       /**
+        * Generic Secure Password Authentication Method as specified in RFC 6467
+        */
+       AUTH_GSPM = 12,
+
 };
 
 /**