Move our pseudo EAP types out of the range of valid EAP methods
authorTobias Brunner <tobias@strongswan.org>
Fri, 31 Aug 2012 09:31:48 +0000 (11:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 31 Aug 2012 09:31:48 +0000 (11:31 +0200)
src/libstrongswan/eap/eap.c
src/libstrongswan/eap/eap.h

index efd3ee9..05e8da2 100644 (file)
@@ -51,12 +51,12 @@ ENUM_NEXT(eap_type_names, EAP_MSTLV, EAP_MSTLV, EAP_MSCHAPV2,
        "EAP_MSTLV");
 ENUM_NEXT(eap_type_names, EAP_TNC, EAP_TNC, EAP_MSTLV,
        "EAP_TNC");
-ENUM_NEXT(eap_type_names, EAP_DYNAMIC, EAP_EXPERIMENTAL, EAP_TNC,
-       "EAP_DYNAMIC",
-       "EAP_RADIUS",
+ENUM_NEXT(eap_type_names, EAP_EXPANDED, EAP_DYNAMIC, EAP_TNC,
        "EAP_EXPANDED",
-       "EAP_EXPERIMENTAL");
-ENUM_END(eap_type_names, EAP_EXPERIMENTAL);
+       "EAP_EXPERIMENTAL",
+       "EAP_RADIUS",
+       "EAP_DYNAMIC");
+ENUM_END(eap_type_names, EAP_DYNAMIC);
 
 ENUM_BEGIN(eap_type_short_names, EAP_IDENTITY, EAP_GTC,
        "ID",
@@ -80,12 +80,12 @@ ENUM_NEXT(eap_type_short_names, EAP_MSTLV, EAP_MSTLV, EAP_MSCHAPV2,
        "MSTLV");
 ENUM_NEXT(eap_type_short_names, EAP_TNC, EAP_TNC, EAP_MSTLV,
        "TNC");
-ENUM_NEXT(eap_type_short_names, EAP_DYNAMIC, EAP_EXPERIMENTAL, EAP_TNC,
-       "DYN",
-       "RAD",
+ENUM_NEXT(eap_type_short_names, EAP_EXPANDED, EAP_DYNAMIC, EAP_TNC,
        "EXP",
-       "XP");
-ENUM_END(eap_type_short_names, EAP_EXPERIMENTAL);
+       "XP",
+       "RAD",
+       "DYN");
+ENUM_END(eap_type_short_names, EAP_DYNAMIC);
 
 /*
  * See header
index 143232e..936ae11 100644 (file)
@@ -64,12 +64,12 @@ enum eap_type_t {
        EAP_MSCHAPV2 = 26,
        EAP_MSTLV = 33,
        EAP_TNC = 38,
-       /** select EAP method dynamically based on i.e. EAP-Identity */
-       EAP_DYNAMIC = 252,
-       /** not a method, but an implementation providing different methods */
-       EAP_RADIUS = 253,
        EAP_EXPANDED = 254,
        EAP_EXPERIMENTAL = 255,
+       /** not a method, but an implementation providing different methods */
+       EAP_RADIUS = 256,
+       /** not a method, select actual method dynamically based on e.g. the ID */
+       EAP_DYNAMIC = 257,
 };
 
 /**