eap_defs.h

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

Generated on Sat Nov 21 23:16:51 2009 for hostapd by  doxygen 1.6.1