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
52 static const char * eap_sm_method_state_txt(EapMethodState state);
105 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
130 * This state initializes state machine variables when the machine is
162 * state machine uses eapNoResp first, it may end up not sending a real
163 * reply correctly. This occurred when the workaround in FAIL state set
175 * This state is reached whenever service from the lower layer is interrupted
187 * The state machine spends most of its time here, waiting for something to
188 * happen. This state is entered unconditionally from INITIALIZE, DISCARD, and
198 * This state is entered when an EAP packet is received (eapReq == TRUE) to
214 * This state is entered when a request for a new type comes in. Either the
341 * process, and buildResp) in this state. These have been combined into
344 * used from within this METHOD state, so there is no need to keep
384 * This state signals the lower layer that a response packet is ready to be
405 * This state signals the lower layer that the request was discarded, and no
449 * This state retransmits the previous response packet.
463 * This state is entered in case of a successful completion of authentication
464 * and state machine waits here until port is disabled or EAP authentication is
476 * to avoid processing the same request twice when state machine is
483 * to get EAPOL Supplicant backend state machine into SUCCESS state. In
495 * This state is entered in case of a failure and state machine waits here
505 * to avoid processing the same request twice when state machine is
551 * RFC 4137 - Appendix A.1: EAP Peer State Machine - State transitions
724 * ended up in a state were EAP messages were sent between the
961 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1207 * eap_peer_sm_init - Allocate and initialize EAP peer state machine
1212 * Returns: Pointer to the allocated EAP state machine or %NULL on failure
1214 * This function allocates and initializes an EAP state machine. In addition,
1215 * this initializes TLS library for the new EAP state machine. eapol_cb pointer
1217 * state machine. Consequently, the caller must make sure that this data
1218 * structure remains alive while the EAP state machine is active.
1258 * eap_peer_sm_deinit - Deinitialize and free an EAP peer state machine
1259 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1261 * This function deinitializes EAP state machine and frees all allocated
1276 * eap_peer_sm_step - Step EAP peer state machine
1277 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1278 * Returns: 1 if EAP state was changed or 0 if not
1280 * This function advances EAP state machine to a new state to match with the
1282 * state machine have changed.
1299 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1302 * session without fully deinitializing the EAP state machine.
1321 static const char * eap_sm_state_txt(int state)
1323 switch (state) {
1358 static const char * eap_sm_method_state_txt(EapMethodState state)
1360 switch (state) {
1396 * eap_sm_get_status - Get EAP state machine status
1397 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1403 * Query EAP state machine for status information. This function fills in a
1404 * text area with current status information from the EAPOL state machine. If
1416 "EAP state=%s\n",
1553 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1568 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1583 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1598 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1613 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1629 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1644 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1646 * Notify EAP state machines that a monitor was attached to the control
1753 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1764 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1775 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1791 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1807 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1823 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1844 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1860 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1876 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1896 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1910 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1933 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1943 * eap_notify_success - Notify EAP state machine about external success trigger
1944 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1947 * WPA-PSK key handshake, is indicating that EAP state machine should move to
1948 * success state. This is mainly used with security modes that do not use EAP
1949 * state machine (e.g., WPA-PSK).
1962 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1964 * Notify EAP state machines that a lower layer has detected a successful
1988 * eap_get_eapKeyData - Get master session key (MSK) from EAP state machine
1989 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
1993 * Fetch EAP keying material (MSK, eapKeyData) from the EAP state machine. The
1994 * key is available only after a successful authentication. EAP state machine
2012 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2015 * Fetch EAP response (eapRespData) from the EAP state machine. This data is
2016 * available when EAP state machine has processed an incoming EAP request. The
2017 * EAP state machine does not maintain a reference to the response after this
2036 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2039 * Notify EAP state machines of context data for smart card operations. This
2051 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2067 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2084 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2087 * This function is used to force EAP state machine to be disabled when it is
2098 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()
2102 * used to request EAPOL state machine to retry delivering the previously
2103 * received (and still unanswered) EAP request to EAP state machine.
2113 * @sm: Pointer to EAP state machine allocated with eap_peer_sm_init()