|
wpa_supplicant / hostapd 2.0
|
00001 00010 #ifndef EAP_DEFS_H 00011 #define EAP_DEFS_H 00012 00013 /* RFC 3748 - Extensible Authentication Protocol (EAP) */ 00014 00015 #ifdef _MSC_VER 00016 #pragma pack(push, 1) 00017 #endif /* _MSC_VER */ 00018 00019 struct eap_hdr { 00020 u8 code; 00021 u8 identifier; 00022 be16 length; /* including code and identifier; network byte order */ 00023 /* followed by length-4 octets of data */ 00024 } STRUCT_PACKED; 00025 00026 #ifdef _MSC_VER 00027 #pragma pack(pop) 00028 #endif /* _MSC_VER */ 00029 00030 enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3, 00031 EAP_CODE_FAILURE = 4 }; 00032 00033 /* EAP Request and Response data begins with one octet Type. Success and 00034 * Failure do not have additional data. */ 00035 00036 /* 00037 * EAP Method Types as allocated by IANA: 00038 * http://www.iana.org/assignments/eap-numbers 00039 */ 00040 typedef enum { 00041 EAP_TYPE_NONE = 0, 00042 EAP_TYPE_IDENTITY = 1 /* RFC 3748 */, 00043 EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */, 00044 EAP_TYPE_NAK = 3 /* Response only, RFC 3748 */, 00045 EAP_TYPE_MD5 = 4, /* RFC 3748 */ 00046 EAP_TYPE_OTP = 5 /* RFC 3748 */, 00047 EAP_TYPE_GTC = 6, /* RFC 3748 */ 00048 EAP_TYPE_TLS = 13 /* RFC 2716 */, 00049 EAP_TYPE_LEAP = 17 /* Cisco proprietary */, 00050 EAP_TYPE_SIM = 18 /* RFC 4186 */, 00051 EAP_TYPE_TTLS = 21 /* RFC 5281 */, 00052 EAP_TYPE_AKA = 23 /* RFC 4187 */, 00053 EAP_TYPE_PEAP = 25 /* draft-josefsson-pppext-eap-tls-eap-06.txt */, 00054 EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */, 00055 EAP_TYPE_TLV = 33 /* draft-josefsson-pppext-eap-tls-eap-07.txt */, 00056 EAP_TYPE_TNC = 38 /* TNC IF-T v1.0-r3; note: tentative assignment; 00057 * type 38 has previously been allocated for 00058 * EAP-HTTP Digest, (funk.com) */, 00059 EAP_TYPE_FAST = 43 /* RFC 4851 */, 00060 EAP_TYPE_PAX = 46 /* RFC 4746 */, 00061 EAP_TYPE_PSK = 47 /* RFC 4764 */, 00062 EAP_TYPE_SAKE = 48 /* RFC 4763 */, 00063 EAP_TYPE_IKEV2 = 49 /* RFC 5106 */, 00064 EAP_TYPE_AKA_PRIME = 50 /* draft-arkko-eap-aka-kdf-10.txt */, 00065 EAP_TYPE_GPSK = 51 /* RFC 5433 */, 00066 EAP_TYPE_PWD = 52 /* RFC 5931 */, 00067 EAP_TYPE_EXPANDED = 254 /* RFC 3748 */ 00068 } EapType; 00069 00070 00071 /* SMI Network Management Private Enterprise Code for vendor specific types */ 00072 enum { 00073 EAP_VENDOR_IETF = 0, 00074 EAP_VENDOR_MICROSOFT = 0x000137 /* Microsoft */, 00075 EAP_VENDOR_WFA = 0x00372A /* Wi-Fi Alliance */ 00076 }; 00077 00078 #define EAP_MSK_LEN 64 00079 #define EAP_EMSK_LEN 64 00080 00081 #endif /* EAP_DEFS_H */ 00082
1.7.3