Lines Matching full:state
2 * EAP peer state machines (RFC 4137)
14 * This file implements the Peer State Machine as defined in RFC 4137. The used
15 * states and state transitions match mostly with the RFC. However, there are
49 static const char * eap_sm_method_state_txt(EapMethodState state);
101 * This state initializes state machine variables when the machine is
132 * state machine uses eapNoResp first, it may end up not sending a real
133 * reply correctly. This occurred when the workaround in FAIL state set
144 * This state is reached whenever service from the lower layer is interrupted
156 * The state machine spends most of its time here, waiting for something to
157 * happen. This state is entered unconditionally from INITIALIZE, DISCARD, and
167 * This state is entered when an EAP packet is received (eapReq == TRUE) to
184 * This state is entered when a request for a new type comes in. Either the
304 * process, and buildResp) in this state. These have been combined into
307 * used from within this METHOD state, so there is no need to keep
348 * This state signals the lower layer that a response packet is ready to be
374 * This state signals the lower layer that the request was discarded, and no
421 * This state retransmits the previous response packet.
440 * This state is entered in case of a successful completion of authentication
441 * and state machine waits here until port is disabled or EAP authentication is
453 * to avoid processing the same request twice when state machine is
460 * to get EAPOL Supplicant backend state machine into SUCCESS state. In
472 * This state is entered in case of a failure and state machine waits here
482 * to avoid processing the same request twice when state machine is
526 * RFC 4137 - Appendix A.1: EAP Peer State Machine - State transitions
540 * ended up in a state were EAP messages were sent between the
931 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1153 * eap_sm_init - Allocate and initialize EAP state machine
1158 * Returns: Pointer to the allocated EAP state machine or %NULL on failure
1160 * This function allocates and initializes an EAP state machine. In addition,
1161 * this initializes TLS library for the new EAP state machine. eapol_cb pointer
1162 * will be in use until eap_sm_deinit() is used to deinitialize this EAP state
1164 * remains alive while the EAP state machine is active.
1197 * eap_sm_deinit - Deinitialize and free an EAP state machine
1198 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1200 * This function deinitializes EAP state machine and frees all allocated
1215 * eap_sm_step - Step EAP state machine
1216 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1217 * Returns: 1 if EAP state was changed or 0 if not
1219 * This function advances EAP state machine to a new state to match with the
1221 * state machine have changed.
1238 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1241 * session without fully deinitializing the EAP state machine.
1260 static const char * eap_sm_state_txt(int state)
1262 switch (state) {
1297 static const char * eap_sm_method_state_txt(EapMethodState state)
1299 switch (state) {
1335 * eap_sm_get_status - Get EAP state machine status
1336 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1342 * Query EAP state machine for status information. This function fills in a
1343 * text area with current status information from the EAPOL state machine. If
1355 "EAP state=%s\n",
1506 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1521 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1536 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1551 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1566 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1582 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1597 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1599 * Notify EAP state machines that a monitor was attached to the control
1706 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1717 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1728 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1744 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1760 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1776 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1792 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1808 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1828 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1838 * eap_notify_success - Notify EAP state machine about external success trigger
1839 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1842 * WPA-PSK key handshake, is indicating that EAP state machine should move to
1843 * success state. This is mainly used with security modes that do not use EAP
1844 * state machine (e.g., WPA-PSK).
1857 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1859 * Notify EAP state machines that a lower layer has detected a successful
1883 * eap_get_eapKeyData - Get master session key (MSK) from EAP state machine
1884 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1888 * Fetch EAP keying material (MSK, eapKeyData) from the EAP state machine. The
1889 * key is available only after a successful authentication. EAP state machine
1907 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1911 * Fetch EAP response (eapRespData) from the EAP state machine. This data is
1912 * available when EAP state machine has processed an incoming EAP request. The
1913 * EAP state machine does not maintain a reference to the response after this
1936 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
1939 * Notify EAP state machines of context data for smart card operations. This
2022 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
2036 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
2049 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
2052 * This function is used to force EAP state machine to be disabled when it is
2113 * @sm: Pointer to EAP state machine allocated with eap_sm_init()
2117 * used to request EAPOL state machine to retry delivering the previously
2118 * received (and still unanswered) EAP request to EAP state machine.
2128 * @sm: Pointer to EAP state machine allocated with eap_sm_init()