Go to the documentation of this file.
35 #include "eap_config.h"
62 #ifndef GPL_LICENSE_TERMS_ACCEPTED
63 #error Before compiling CycloneEAP Open, you must accept the terms of the GPL license
67 #define CYCLONE_EAP_VERSION_STRING "2.4.4"
69 #define CYCLONE_EAP_MAJOR_VERSION 2
71 #define CYCLONE_EAP_MINOR_VERSION 4
73 #define CYCLONE_EAP_REV_NUMBER 4
77 #define EAP_SUPPORT ENABLED
78 #elif (EAP_SUPPORT != ENABLED && EAP_SUPPORT != DISABLED)
79 #error EAP_SUPPORT parameter is not valid
83 #ifndef EAP_MD5_SUPPORT
84 #define EAP_MD5_SUPPORT DISABLED
85 #elif (EAP_MD5_SUPPORT != ENABLED && EAP_MD5_SUPPORT != DISABLED)
86 #error EAP_MD5_SUPPORT parameter is not valid
90 #ifndef EAP_TLS_SUPPORT
91 #define EAP_TLS_SUPPORT DISABLED
92 #elif (EAP_TLS_SUPPORT != ENABLED && EAP_TLS_SUPPORT != DISABLED)
93 #error EAP_TLS_SUPPORT parameter is not valid
97 #ifndef EAP_MAX_FRAG_SIZE
98 #define EAP_MAX_FRAG_SIZE 1000
99 #elif (EAP_MAX_FRAG_SIZE < 100 || EAP_MAX_FRAG_SIZE > 1500)
100 #error EAP_DEFAULT_CLIENT_TIMEOUT parameter is not valid
104 #ifndef EAP_DEFAULT_CLIENT_TIMEOUT
105 #define EAP_DEFAULT_CLIENT_TIMEOUT 60
106 #elif (EAP_DEFAULT_CLIENT_TIMEOUT < 0)
107 #error EAP_DEFAULT_CLIENT_TIMEOUT parameter is not valid
194 #if defined(__CCRX__)
196 #elif defined(__CWCC__) || defined(_WIN32)
197 #pragma pack(push, 1)
207 uint8_t protocolVersion;
271 #if defined(__CCRX__)
273 #elif defined(__CWCC__) || defined(_WIN32)
typedef __packed_struct
EAPOL PDU.
@ EAP_METHOD_TYPE_TLS
EAP-TLS.
@ EAP_TLS_FLAGS_L
Length included.
EapMethodType
EAP method types.
@ EAP_METHOD_TYPE_OTP
One-Time Password (OTP)
@ EAP_CODE_RESPONSE
Response.
EapolType
EAPOL packet types.
@ EAP_METHOD_TYPE_NONE
None.
@ EAPOL_VERSION_2
IEEE 802.1X-2004.
@ EAP_CODE_FAILURE
Failure.
EapolVersion
EAPOL protocol versions.
@ EAP_METHOD_TYPE_NAK
Legacy Nak.
EapTlsFlags
EAP-TLS flags.
@ EAP_METHOD_TYPE_IDENTITY
Identity.
@ EAP_TLS_FLAGS_R
Reserved.
@ EAPOL_TYPE_EAP
EAPOL-EAP.
@ EAP_CODE_SUCCESS
Success.
@ EAPOL_TYPE_ENCAPSULATED_ASF_ALERT
EAPOL-Encapsulated-ASF-Alert.
General definitions for cryptographic algorithms.
@ EAP_METHOD_TYPE_MSCHAP_V2
EAP-MSCHAP-V2.
@ EAP_TLS_FLAGS_S
EAP-TLS start.
@ EAPOL_TYPE_KEY
EAPOL-Key.
@ EAP_CODE_REQUEST
Request.
@ EAPOL_VERSION_1
IEEE 802.1X-2001.
@ EAPOL_TYPE_ANNOUNCEMENT_SPECIFIC
EAPOL-Announcement (Specific)
@ EAP_METHOD_TYPE_TTLS
EAP-TTLS.
@ EAPOL_TYPE_MKA
EAPOL-MKA.
@ EAP_METHOD_TYPE_EXPANDED_NAK
Expanded NAK.
@ EAP_METHOD_TYPE_NOTIFICATION
Notification.
@ EAP_METHOD_TYPE_PEAP
PEAP.
@ EAP_TLS_FLAGS_M
More fragments.
@ EAP_METHOD_TYPE_GTC
Generic Token Card (GTC)
@ EAPOL_TYPE_ANNOUNCEMENT_REQ
EAPOL-Announcement-Req.
@ EAPOL_TYPE_LOGOFF
EAPOL-Logoff.
@ EAPOL_TYPE_START
EAPOL-Start.
@ EAPOL_TYPE_ANNOUNCEMENT_GENERIC
EAPOL-Announcement (Generic)
@ EAPOL_VERSION_3
IEEE 802.1X-2010.
@ EAP_METHOD_TYPE_MD5_CHALLENGE
MD5-Challenge.