added GSPM IKEv2 payload
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 3 Apr 2012 10:21:39 +0000 (12:21 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 3 Apr 2012 10:21:39 +0000 (12:21 +0200)
src/libcharon/encoding/payloads/payload.c
src/libcharon/encoding/payloads/payload.h

index d1e677d..a2c0a43 100644 (file)
@@ -39,7 +39,8 @@
 
 ENUM_BEGIN(payload_type_names, NO_PAYLOAD, NO_PAYLOAD,
        "NO_PAYLOAD");
-ENUM_NEXT(payload_type_names, SECURITY_ASSOCIATION, EXTENSIBLE_AUTHENTICATION, NO_PAYLOAD,
+ENUM_NEXT(payload_type_names, SECURITY_ASSOCIATION,
+                                                         GENERIC_SECURE_PASSWORD_METHOD, NO_PAYLOAD,
        "SECURITY_ASSOCIATION",
        "KEY_EXCHANGE",
        "ID_INITIATOR",
@@ -55,9 +56,10 @@ ENUM_NEXT(payload_type_names, SECURITY_ASSOCIATION, EXTENSIBLE_AUTHENTICATION, N
        "TRAFFIC_SELECTOR_RESPONDER",
        "ENCRYPTED",
        "CONFIGURATION",
-       "EXTENSIBLE_AUTHENTICATION");
+       "EXTENSIBLE_AUTHENTICATION",
+       "GENERIC_SECURE_PASSWORD_METHOD");
 #ifdef ME
-ENUM_NEXT(payload_type_names, ID_PEER, ID_PEER, EXTENSIBLE_AUTHENTICATION,
+ENUM_NEXT(payload_type_names, ID_PEER, ID_PEER, GENERIC_SECURE_PASSWORD_METHOD,
        "ID_PEER");
 ENUM_NEXT(payload_type_names, HEADER, CONFIGURATION_ATTRIBUTE, ID_PEER,
        "HEADER",
@@ -67,7 +69,8 @@ ENUM_NEXT(payload_type_names, HEADER, CONFIGURATION_ATTRIBUTE, ID_PEER,
        "TRAFFIC_SELECTOR_SUBSTRUCTURE",
        "CONFIGURATION_ATTRIBUTE");
 #else
-ENUM_NEXT(payload_type_names, HEADER, CONFIGURATION_ATTRIBUTE, EXTENSIBLE_AUTHENTICATION,
+ENUM_NEXT(payload_type_names, HEADER, CONFIGURATION_ATTRIBUTE,
+                                                         GENERIC_SECURE_PASSWORD_METHOD,
        "HEADER",
        "PROPOSAL_SUBSTRUCTURE",
        "TRANSFORM_SUBSTRUCTURE",
@@ -80,7 +83,8 @@ ENUM_END(payload_type_names, CONFIGURATION_ATTRIBUTE);
 /* short forms of payload names */
 ENUM_BEGIN(payload_type_short_names, NO_PAYLOAD, NO_PAYLOAD,
        "--");
-ENUM_NEXT(payload_type_short_names, SECURITY_ASSOCIATION, EXTENSIBLE_AUTHENTICATION, NO_PAYLOAD,
+ENUM_NEXT(payload_type_short_names, SECURITY_ASSOCIATION,
+                                                                       GENERIC_SECURE_PASSWORD_METHOD, NO_PAYLOAD,
        "SA",
        "KE",
        "IDi",
@@ -96,9 +100,11 @@ ENUM_NEXT(payload_type_short_names, SECURITY_ASSOCIATION, EXTENSIBLE_AUTHENTICAT
        "TSr",
        "E",
        "CP",
-       "EAP");
+       "EAP",
+       "GSPM");
 #ifdef ME
-ENUM_NEXT(payload_type_short_names, ID_PEER, ID_PEER, EXTENSIBLE_AUTHENTICATION,
+ENUM_NEXT(payload_type_short_names, ID_PEER, ID_PEER,
+                                                                       GENERIC_SECURE_PASSWORD_METHOD,
        "IDp");
 ENUM_NEXT(payload_type_short_names, HEADER, CONFIGURATION_ATTRIBUTE, ID_PEER,
        "HDR",
@@ -108,7 +114,8 @@ ENUM_NEXT(payload_type_short_names, HEADER, CONFIGURATION_ATTRIBUTE, ID_PEER,
        "TSSUB",
        "CPATTR");
 #else
-ENUM_NEXT(payload_type_short_names, HEADER, CONFIGURATION_ATTRIBUTE, EXTENSIBLE_AUTHENTICATION,
+ENUM_NEXT(payload_type_short_names, HEADER, CONFIGURATION_ATTRIBUTE,
+                                                                       GENERIC_SECURE_PASSWORD_METHOD,
        "HDR",
        "PROP",
        "TRANS",
index ad3023f..a9af29b 100644 (file)
@@ -123,6 +123,11 @@ enum payload_type_t{
         */
        EXTENSIBLE_AUTHENTICATION = 48,
 
+       /**
+        * Generic Secure Password Method (GSPM).
+        */
+       GENERIC_SECURE_PASSWORD_METHOD = 49,
+
 #ifdef ME
        /**
         * Identification payload for peers has a value from