5 #ifndef EAPOL_AUTH_SM_I_H
6 #define EAPOL_AUTH_SM_I_H
13 typedef enum { ForceUnauthorized = 1, ForceAuthorized = 3, Auto = 2 }
15 typedef enum { Unauthorized = 2, Authorized = 1 } PortState;
16 typedef enum { Both = 0, In = 1 } ControlledDirection;
17 typedef unsigned int Counter;
29 u8 default_wep_key_idx;
31 u32 acct_multi_session_id_hi;
32 u32 acct_multi_session_id_lo;
49 PortState authPortStatus;
58 PortTypes portControl;
60 Boolean reAuthenticate;
66 enum { AUTH_PAE_INITIALIZE, AUTH_PAE_DISCONNECTED, AUTH_PAE_CONNECTING,
67 AUTH_PAE_AUTHENTICATING, AUTH_PAE_AUTHENTICATED,
68 AUTH_PAE_ABORTING, AUTH_PAE_HELD, AUTH_PAE_FORCE_AUTH,
69 AUTH_PAE_FORCE_UNAUTH, AUTH_PAE_RESTART } auth_pae_state;
74 unsigned int reAuthCount;
76 unsigned int quietPeriod;
77 #define AUTH_PAE_DEFAULT_quietPeriod 60
78 unsigned int reAuthMax;
79 #define AUTH_PAE_DEFAULT_reAuthMax 2
81 Counter authEntersConnecting;
82 Counter authEapLogoffsWhileConnecting;
83 Counter authEntersAuthenticating;
84 Counter authAuthSuccessesWhileAuthenticating;
85 Counter authAuthTimeoutsWhileAuthenticating;
86 Counter authAuthFailWhileAuthenticating;
87 Counter authAuthEapStartsWhileAuthenticating;
88 Counter authAuthEapLogoffWhileAuthenticating;
89 Counter authAuthReauthsWhileAuthenticated;
90 Counter authAuthEapStartsWhileAuthenticated;
91 Counter authAuthEapLogoffWhileAuthenticated;
94 enum { BE_AUTH_REQUEST, BE_AUTH_RESPONSE, BE_AUTH_SUCCESS,
95 BE_AUTH_FAIL, BE_AUTH_TIMEOUT, BE_AUTH_IDLE, BE_AUTH_INITIALIZE,
99 unsigned int serverTimeout;
100 #define BE_AUTH_DEFAULT_serverTimeout 30
102 Counter backendResponses;
103 Counter backendAccessChallenges;
104 Counter backendOtherRequestsToSupplicant;
105 Counter backendAuthSuccesses;
106 Counter backendAuthFails;
109 enum { REAUTH_TIMER_INITIALIZE, REAUTH_TIMER_REAUTHENTICATE
110 } reauth_timer_state;
112 unsigned int reAuthPeriod;
113 Boolean reAuthEnabled;
116 enum { AUTH_KEY_TX_NO_KEY_TRANSMIT, AUTH_KEY_TX_KEY_TRANSMIT
120 enum { KEY_RX_NO_KEY_RECEIVE, KEY_RX_KEY_RECEIVE } key_rx_state;
125 enum { CTRL_DIR_FORCE_BOTH, CTRL_DIR_IN_OR_BOTH } ctrl_dir_state;
127 ControlledDirection adminControlledDirections;
128 ControlledDirection operControlledDirections;
132 Counter dot1xAuthEapolFramesRx;
133 Counter dot1xAuthEapolFramesTx;
134 Counter dot1xAuthEapolStartFramesRx;
135 Counter dot1xAuthEapolLogoffFramesRx;
136 Counter dot1xAuthEapolRespIdFramesRx;
137 Counter dot1xAuthEapolRespFramesRx;
138 Counter dot1xAuthEapolReqIdFramesTx;
139 Counter dot1xAuthEapolReqFramesTx;
140 Counter dot1xAuthInvalidEapolFramesRx;
141 Counter dot1xAuthEapLengthErrorFramesRx;
142 Counter dot1xAuthLastEapolFrameVersion;
151 int radius_identifier;
161 struct wpabuf *radius_cui;
165 size_t eapol_key_sign_len;
167 size_t eapol_key_crypt_len;
171 Boolean initializing;
180 u32 acct_multi_session_id_hi;
181 u32 acct_multi_session_id_lo;
Definition: eapol_auth_sm.h:13
RADIUS message structure for new and parsed messages.
Definition: radius.c:18
WPA Supplicant - Common definitions.
RADIUS message processing.
Per-Supplicant Authenticator state machines.
Definition: eapol_auth_sm_i.h:40
Definition: eapol_auth_sm.h:59
EAP state machine data.
Definition: eap_i.h:302
Global EAPOL authenticator data.
Definition: eapol_auth_sm_i.h:24