Added a pseudo EAP type to allow an implementation to select the real type dynamically
authorMartin Willi <martin@revosec.ch>
Tue, 22 Feb 2011 15:09:45 +0000 (16:09 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 22 Feb 2011 15:09:45 +0000 (16:09 +0100)
src/libstrongswan/eap/eap.c
src/libstrongswan/eap/eap.h

index 7173401..770c31c 100644 (file)
@@ -48,7 +48,8 @@ ENUM_NEXT(eap_type_names, EAP_MSCHAPV2, EAP_MSCHAPV2, EAP_AKA,
        "EAP_MSCHAPV2");
 ENUM_NEXT(eap_type_names, EAP_TNC, EAP_TNC, EAP_MSCHAPV2,
        "EAP_TNC");
-ENUM_NEXT(eap_type_names, EAP_RADIUS, EAP_EXPERIMENTAL, EAP_TNC,
+ENUM_NEXT(eap_type_names, EAP_DYNAMIC, EAP_EXPERIMENTAL, EAP_TNC,
+       "EAP_DYNAMIC",
        "EAP_RADIUS",
        "EAP_EXPANDED",
        "EAP_EXPERIMENTAL");
@@ -73,7 +74,8 @@ ENUM_NEXT(eap_type_short_names, EAP_MSCHAPV2, EAP_MSCHAPV2, EAP_AKA,
        "MSCHAPV2");
 ENUM_NEXT(eap_type_short_names, EAP_TNC, EAP_TNC, EAP_MSCHAPV2,
        "TNC");
-ENUM_NEXT(eap_type_short_names, EAP_RADIUS, EAP_EXPERIMENTAL, EAP_TNC,
+ENUM_NEXT(eap_type_short_names, EAP_DYNAMIC, EAP_EXPERIMENTAL, EAP_TNC,
+       "DYN",
        "RAD",
        "EXP",
        "XP");
index e98a3a2..8b093de 100644 (file)
@@ -62,6 +62,8 @@ enum eap_type_t {
        EAP_AKA = 23,
        EAP_MSCHAPV2 = 26,
        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,