eap_full_auth_fsm.h
Go to the documentation of this file.
1 /**
2  * @file eap_full_auth_fsm.h
3  * @brief EAP full authenticator state machine
4  *
5  * @section License
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  *
9  * Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.
10  *
11  * This file is part of CycloneEAP Open.
12  *
13  * This program is free software; you can redistribute it and/or
14  * modify it under the terms of the GNU General Public License
15  * as published by the Free Software Foundation; either version 2
16  * of the License, or (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program; if not, write to the Free Software Foundation,
25  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26  *
27  * @author Oryx Embedded SARL (www.oryx-embedded.com)
28  * @version 2.4.4
29  **/
30 
31 #ifndef _EAP_FULL_AUTH_FSM_H
32 #define _EAP_FULL_AUTH_FSM_H
33 
34 //Dependencies
35 #include <limits.h>
37 
38 //Invalid identifier
39 #define EAP_CURRENT_ID_NONE UINT_MAX
40 
41 //C++ guard
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 
47 /**
48  * @brief EAP full authenticator states
49  **/
50 
51 typedef enum
52 {
82 
83 
84 /**
85  * @brief EAP method states
86  **/
87 
88 typedef enum
89 {
95 
96 
97 /**
98  * @brief Decisions
99  **/
100 
101 typedef enum
102 {
108 
109 
110 //Authenticator related functions
113 
115  EapFullAuthState newState);
116 
117 //C++ guard
118 #ifdef __cplusplus
119 }
120 #endif
121 
122 #endif
@ EAP_FULL_AUTH_STATE_SUCCESS
@ EAP_METHOD_STATE_END
@ EAP_DECISION_CONTINUE
@ EAP_FULL_AUTH_STATE_SUCCESS2
@ EAP_FULL_AUTH_STATE_FAILURE
@ EAP_DECISION_PASSTHROUGH
@ EAP_METHOD_STATE_PROPOSED
@ EAP_FULL_AUTH_STATE_IDLE
@ EAP_FULL_AUTH_STATE_INITIALIZE
EapMethodState
EAP method states.
@ EAP_FULL_AUTH_STATE_RECEIVED
EapFullAuthState
EAP full authenticator states.
@ EAP_FULL_AUTH_STATE_SELECT_ACTION
802.1X authenticator
@ EAP_FULL_AUTH_STATE_AAA_REQUEST
void eapFullAuthFsm(AuthenticatorPort *port)
EAP full authenticator state machine implementation.
@ EAP_FULL_AUTH_STATE_NAK
@ EAP_FULL_AUTH_STATE_INITIALIZE_PASSTHROUGH
@ EAP_FULL_AUTH_STATE_SEND_REQUEST
@ EAP_FULL_AUTH_STATE_AAA_RESPONSE
@ EAP_DECISION_SUCCESS
void eapFullAuthChangeState(AuthenticatorPort *port, EapFullAuthState newState)
Update EAP full authenticator state.
EapDecision
Decisions.
uint16_t port
Definition: dns_common.h:267
@ EAP_FULL_AUTH_STATE_DISCARD
@ EAP_FULL_AUTH_STATE_AAA_IDLE
@ EAP_FULL_AUTH_STATE_RETRANSMIT
@ EAP_FULL_AUTH_STATE_PROPOSE_METHOD
@ EAP_FULL_AUTH_STATE_TIMEOUT_FAILURE
@ EAP_FULL_AUTH_STATE_FAILURE2
@ EAP_FULL_AUTH_STATE_RETRANSMIT2
@ EAP_FULL_AUTH_STATE_TIMEOUT_FAILURE2
@ EAP_FULL_AUTH_STATE_METHOD_RESPONSE
@ EAP_FULL_AUTH_STATE_METHOD_REQUEST
@ EAP_FULL_AUTH_STATE_RECEIVED2
@ EAP_FULL_AUTH_STATE_SEND_REQUEST2
@ EAP_METHOD_STATE_NONE
#define AuthenticatorPort
Definition: authenticator.h:40
@ EAP_FULL_AUTH_STATE_INTEGRITY_CHECK
@ EAP_FULL_AUTH_STATE_DISCARD2
void eapFullAuthInitFsm(AuthenticatorPort *port)
EAP full authenticator state machine initialization.
@ EAP_METHOD_STATE_CONTINUE
@ EAP_DECISION_FAILURE
@ EAP_FULL_AUTH_STATE_IDLE2
@ EAP_FULL_AUTH_STATE_DISABLED