eap_defs.h
Go to the documentation of this file.
00001 /*
00002  * EAP server/peer: Shared EAP definitions
00003  * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef EAP_DEFS_H
00016 #define EAP_DEFS_H
00017 
00018 /* RFC 3748 - Extensible Authentication Protocol (EAP) */
00019 
00020 #ifdef _MSC_VER
00021 #pragma pack(push, 1)
00022 #endif /* _MSC_VER */
00023 
00024 struct eap_hdr {
00025         u8 code;
00026         u8 identifier;
00027         be16 length; /* including code and identifier; network byte order */
00028         /* followed by length-4 octets of data */
00029 } STRUCT_PACKED;
00030 
00031 #ifdef _MSC_VER
00032 #pragma pack(pop)
00033 #endif /* _MSC_VER */
00034 
00035 enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3,
00036        EAP_CODE_FAILURE = 4 };
00037 
00038 /* EAP Request and Response data begins with one octet Type. Success and
00039  * Failure do not have additional data. */
00040 
00041 /*
00042  * EAP Method Types as allocated by IANA:
00043  * http://www.iana.org/assignments/eap-numbers
00044  */
00045 typedef enum {
00046         EAP_TYPE_NONE = 0,
00047         EAP_TYPE_IDENTITY = 1 /* RFC 3748 */,
00048         EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */,
00049         EAP_TYPE_NAK = 3 /* Response only, RFC 3748 */,
00050         EAP_TYPE_MD5 = 4, /* RFC 3748 */
00051         EAP_TYPE_OTP = 5 /* RFC 3748 */,
00052         EAP_TYPE_GTC = 6, /* RFC 3748 */
00053         EAP_TYPE_TLS = 13 /* RFC 2716 */,
00054         EAP_TYPE_LEAP = 17 /* Cisco proprietary */,
00055         EAP_TYPE_SIM = 18 /* RFC 4186 */,
00056         EAP_TYPE_TTLS = 21 /* RFC 5281 */,
00057         EAP_TYPE_AKA = 23 /* RFC 4187 */,
00058         EAP_TYPE_PEAP = 25 /* draft-josefsson-pppext-eap-tls-eap-06.txt */,
00059         EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */,
00060         EAP_TYPE_TLV = 33 /* draft-josefsson-pppext-eap-tls-eap-07.txt */,
00061         EAP_TYPE_TNC = 38 /* TNC IF-T v1.0-r3; note: tentative assignment;
00062                            * type 38 has previously been allocated for
00063                            * EAP-HTTP Digest, (funk.com) */,
00064         EAP_TYPE_FAST = 43 /* RFC 4851 */,
00065         EAP_TYPE_PAX = 46 /* RFC 4746 */,
00066         EAP_TYPE_PSK = 47 /* RFC 4764 */,
00067         EAP_TYPE_SAKE = 48 /* RFC 4763 */,
00068         EAP_TYPE_IKEV2 = 49 /* RFC 5106 */,
00069         EAP_TYPE_AKA_PRIME = 50 /* draft-arkko-eap-aka-kdf-10.txt */,
00070         EAP_TYPE_GPSK = 51 /* RFC 5433 */,
00071         EAP_TYPE_EXPANDED = 254 /* RFC 3748 */
00072 } EapType;
00073 
00074 
00075 /* SMI Network Management Private Enterprise Code for vendor specific types */
00076 enum {
00077         EAP_VENDOR_IETF = 0,
00078         EAP_VENDOR_MICROSOFT = 0x000137 /* Microsoft */,
00079         EAP_VENDOR_WFA = 0x00372A /* Wi-Fi Alliance */
00080 };
00081 
00082 #define EAP_MSK_LEN 64
00083 #define EAP_EMSK_LEN 64
00084 
00085 #endif /* EAP_DEFS_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:25:13