Added definitions for more EAP types
authoraland <aland>
Fri, 23 Nov 2007 14:18:53 +0000 (14:18 +0000)
committeraland <aland>
Fri, 23 Nov 2007 14:18:53 +0000 (14:18 +0000)
src/modules/rlm_eap/libeap/eap_types.h
src/modules/rlm_eap/libeap/eapcommon.c

index 09a3285..8645c9b 100644 (file)
@@ -56,7 +56,8 @@ RCSIDH(eap_types_h, "$Id$")
 #define PW_EAP_PEAP            25
 #define PW_EAP_MSCHAPV2                26
 #define PW_EAP_CISCO_MSCHAPV2  29
-#define PW_EAP_MAX_TYPES       29
+#define PW_EAP_TNC             38
+#define PW_EAP_MAX_TYPES       39
 
 #define EAP_HEADER_LEN                 4
 
index bfbd978..f661891 100644 (file)
@@ -96,8 +96,18 @@ static const char *eap_types[] = {
   "27",
   "28",
   "cisco_mschapv2"             /* 29 */
+  "30",
+  "31",
+  "32",
+  "33",
+  "34",
+  "35",
+  "36",
+  "37",
+  "tnc",                       /* 38 */
+  "39"
 };
-#define MAX_EAP_TYPE_NAME 29
+#define MAX_EAP_TYPE_NAME 39
 
 /*
  *     Return an EAP-Type for a particular name.