supplicant_pae_fsm.h
Go to the documentation of this file.
1 /**
2  * @file supplicant_pae_fsm.h
3  * @brief Supplicant PAE 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.0
29  **/
30 
31 #ifndef _SUPPLICANT_PAE_FSM_H
32 #define _SUPPLICANT_PAE_FSM_H
33 
34 //Dependencies
35 #include "supplicant/supplicant.h"
36 
37 //C++ guard
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 
43 /**
44  * @brief Supplicant PAE states
45  **/
46 
47 typedef enum
48 {
59 
60 
61 /**
62  * @brief Port status
63  **/
64 
65 typedef enum
66 {
70 
71 
72 /**
73  * @brief Port modes
74  **/
75 
76 typedef enum
77 {
82 
83 
84 //Supplicant related functions
86 void supplicantPaeFsm(SupplicantContext *context);
87 
89  SupplicantPaeState newState);
90 
91 //C++ guard
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif
802.1X supplicant
#define SupplicantContext
Definition: supplicant.h:36
SupplicantPortStatus
Port status.
@ SUPPLICANT_PORT_STATUS_UNAUTH
@ SUPPLICANT_PORT_STATUS_AUTH
void supplicantPaeChangeState(SupplicantContext *context, SupplicantPaeState newState)
Update supplicant PAE state.
SupplicantPaeState
Supplicant PAE states.
@ SUPPLICANT_PAE_STATE_CONNECTING
@ SUPPLICANT_PAE_STATE_RESTART
@ SUPPLICANT_PAE_STATE_DISCONNECTED
@ SUPPLICANT_PAE_STATE_LOGOFF
@ SUPPLICANT_PAE_STATE_S_FORCE_AUTH
@ SUPPLICANT_PAE_STATE_HELD
@ SUPPLICANT_PAE_STATE_AUTHENTICATING
@ SUPPLICANT_PAE_STATE_AUTHENTICATED
@ SUPPLICANT_PAE_STATE_S_FORCE_UNAUTH
void supplicantPaeFsm(SupplicantContext *context)
Supplicant PAE state machine implementation.
SupplicantPortMode
Port modes.
@ SUPPLICANT_PORT_MODE_FORCE_AUTH
@ SUPPLICANT_PORT_MODE_FORCE_UNAUTH
@ SUPPLICANT_PORT_MODE_AUTO
void supplicantPaeInitFsm(SupplicantContext *context)
Supplicant PAE state machine initialization.