aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/eap/eap.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 17:59:49 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-04-05 17:59:49 +0200
commit6f05ad829a022f7c57375622354cef1f9f248c06 (patch)
tree42a749a6aab8a8a0cf20ba77d5350865a8020324 /src/libstrongswan/eap/eap.h
parentdcfb8177b3abb13fc352c67461a5543ad0fa3b2b (diff)
downloadstrongswan-6f05ad829a022f7c57375622354cef1f9f248c06.tar.bz2
strongswan-6f05ad829a022f7c57375622354cef1f9f248c06.tar.xz
added EAP PEAP and MSTLV protocols
Diffstat (limited to 'src/libstrongswan/eap/eap.h')
-rw-r--r--src/libstrongswan/eap/eap.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libstrongswan/eap/eap.h b/src/libstrongswan/eap/eap.h
index 8b093de4b..945e4bc59 100644
--- a/src/libstrongswan/eap/eap.h
+++ b/src/libstrongswan/eap/eap.h
@@ -60,7 +60,9 @@ enum eap_type_t {
EAP_SIM = 18,
EAP_TTLS = 21,
EAP_AKA = 23,
+ EAP_PEAP = 25,
EAP_MSCHAPV2 = 26,
+ EAP_MSTLV = 33,
EAP_TNC = 38,
/** select EAP method dynamically based on i.e. EAP-Identity */
EAP_DYNAMIC = 252,
@@ -81,6 +83,17 @@ extern enum_name_t *eap_type_names;
extern enum_name_t *eap_type_short_names;
/**
+ * EAP packet format
+ */
+typedef struct __attribute__((packed)) {
+ u_int8_t code;
+ u_int8_t identifier;
+ u_int16_t length;
+ u_int8_t type;
+ u_int8_t data;
+} eap_packet_t;
+
+/**
* Lookup the EAP method type from a string.
*
* @param name EAP method name (such as "md5", "aka")