A
download eap_defs.h
Language: C
License: GPL
Copyright: (c) 2004-2005, Jouni Malinen
LOC: 31
Project Info
NetBSD(src)
Server: NetBSD
Type: cvs
...rc\src\dist\wpa_supplicant\
   aes.c
   aes_wrap.c
   aes_wrap.h
   base64.c
   base64.h
   common.c
   common.h
   config.c
   config.h
   config_file.c
   config_ssid.h
   config_types.h
   crypto.c
   crypto.h
   crypto_gnutls.c
   ctrl_iface.c
   ctrl_iface.h
   defs.h
   driver.h
   driver_hostap.h
   driver_wired.c
   drivers.c
   eap.c
   eap.h
   eap_aka.c
   eap_defs.h
   eap_fast.c
   eap_gtc.c
   eap_i.h
   eap_leap.c
   eap_md5.c
   eap_mschapv2.c
   eap_otp.c
   eap_pax.c
   eap_pax_common.c
   eap_pax_common.h
   eap_peap.c
   eap_psk.c
   eap_psk_common.c
   eap_psk_common.h
   eap_sim.c
   eap_sim_common.c
   eap_sim_common.h
   eap_tls.c
   eap_tls_common.c
   eap_tls_common.h
   eap_tlv.c
   eap_tlv.h
   eap_ttls.c
   eap_ttls.h
   eapol_sm.c
   eapol_sm.h
   eapol_test.c
   eloop.c
   eloop.h
   events.c
   hostap_common.h
   hostapd.h
   l2_packet.h
   main.c
   md5.c
   md5.h
   ms_funcs.c
   ms_funcs.h
   ...sl-tls-extensions.patch
   pcsc_funcs.c
   pcsc_funcs.h
   preauth.c
   preauth.h
   preauth_test.c
   radius.c
   radius.h
   radius_client.c
   radius_client.h
   rc4.c
   rc4.h
   sha1.c
   sha1.h
   tls.h
   tls_gnutls.c
   tls_none.c
   tls_openssl.c
   tls_schannel.c
   version.h
   wpa.c
   wpa.h
   wpa_cli.c
   wpa_ctrl.c
   wpa_ctrl.h
   wpa_i.h
   wpa_passphrase.c
   wpa_supplicant.c
   wpa_supplicant.conf
   wpa_supplicant.h
   wpa_supplicant_i.h

/*
 * WPA Supplicant/hostapd / Shared EAP definitions
 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * Alternatively, this software may be distributed under the terms of BSD
 * license.
 *
 * See README and COPYING for more details.
 */

#ifndef EAP_DEFS_H
#define EAP_DEFS_H

/* RFC 3748 - Extensible Authentication Protocol (EAP) */

struct eap_hdr {
	u8 code;
	u8 identifier;
	u16 length; /* including code and identifier; network byte order */
	/* followed by length-4 octets of data */
} __attribute__ ((packed));

enum { EAP_CODE_REQUEST = 1, EAP_CODE_RESPONSE = 2, EAP_CODE_SUCCESS = 3,
       EAP_CODE_FAILURE = 4 };

/* EAP Request and Response data begins with one octet Type. Success and
 * Failure do not have additional data. */

typedef enum {
	EAP_TYPE_NONE = 0,
	EAP_TYPE_IDENTITY = 1 /* RFC 3748 */,
	EAP_TYPE_NOTIFICATION = 2 /* RFC 3748 */,
	EAP_TYPE_NAK = 3 /* Response only, RFC 3748 */,
	EAP_TYPE_MD5 = 4, /* RFC 3748 */
	EAP_TYPE_OTP = 5 /* RFC 3748 */,
	EAP_TYPE_GTC = 6, /* RFC 3748 */
	EAP_TYPE_TLS = 13 /* RFC 2716 */,
	EAP_TYPE_LEAP = 17 /* Cisco proprietary */,
	EAP_TYPE_SIM = 18 /* draft-haverinen-pppext-eap-sim-12.txt */,
	EAP_TYPE_TTLS = 21 /* draft-ietf-pppext-eap-ttls-02.txt */,
	EAP_TYPE_AKA = 23 /* draft-arkko-pppext-eap-aka-12.txt */,
	EAP_TYPE_PEAP = 25 /* draft-josefsson-pppext-eap-tls-eap-06.txt */,
	EAP_TYPE_MSCHAPV2 = 26 /* draft-kamath-pppext-eap-mschapv2-00.txt */,
	EAP_TYPE_TLV = 33 /* draft-josefsson-pppext-eap-tls-eap-07.txt */,
	EAP_TYPE_FAST = 43 /* draft-cam-winget-eap-fast-00.txt */,
	EAP_TYPE_PAX = 46, /* draft-clancy-eap-pax-04.txt */
	EAP_TYPE_EXPANDED_NAK = 254 /* RFC 3748 */,
	EAP_TYPE_PSK = 255 /* EXPERIMENTAL - type not yet allocated
			    * draft-bersani-eap-psk-09 */
} EapType;

#endif /* EAP_DEFS_H */

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us