authenticator_pae_fsm.h File Reference

Authenticator PAE state machine. More...

Go to the source code of this file.

Enumerations

enum  AuthenticatorPaeState {
  AUTHENTICATOR_PAE_STATE_INITIALIZE = 0 , AUTHENTICATOR_PAE_STATE_DISCONNECTED = 1 , AUTHENTICATOR_PAE_STATE_RESTART = 2 , AUTHENTICATOR_PAE_STATE_CONNECTING = 3 ,
  AUTHENTICATOR_PAE_STATE_AUTHENTICATING = 4 , AUTHENTICATOR_PAE_STATE_AUTHENTICATED = 5 , AUTHENTICATOR_PAE_STATE_ABORTING = 6 , AUTHENTICATOR_PAE_STATE_HELD = 7 ,
  AUTHENTICATOR_PAE_STATE_FORCE_AUTH = 8 , AUTHENTICATOR_PAE_STATE_FORCE_UNAUTH = 9
}
 Authenticator PAE states. More...
 
enum  AuthenticatorPortStatus { AUTHENTICATOR_PORT_STATUS_UNKNOWN = 0 , AUTHENTICATOR_PORT_STATUS_UNAUTH = 1 , AUTHENTICATOR_PORT_STATUS_AUTH = 2 }
 Port status. More...
 
enum  AuthenticatorPortMode { AUTHENTICATOR_PORT_MODE_FORCE_UNAUTH = 0 , AUTHENTICATOR_PORT_MODE_FORCE_AUTH = 1 , AUTHENTICATOR_PORT_MODE_AUTO = 2 }
 Port modes. More...
 

Functions

void authenticatorPaeInitFsm (AuthenticatorPort *port)
 Authenticator PAE state machine initialization. More...
 
void authenticatorPaeFsm (AuthenticatorPort *port)
 Authenticator PAE state machine implementation. More...
 
void authenticatorPaeChangeState (AuthenticatorPort *port, AuthenticatorPaeState newState)
 Update authenticator PAE state. More...
 

Detailed Description

Authenticator PAE state machine.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2022-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneEAP Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file authenticator_pae_fsm.h.

Enumeration Type Documentation

◆ AuthenticatorPaeState

Authenticator PAE states.

Enumerator
AUTHENTICATOR_PAE_STATE_INITIALIZE 
AUTHENTICATOR_PAE_STATE_DISCONNECTED 
AUTHENTICATOR_PAE_STATE_RESTART 
AUTHENTICATOR_PAE_STATE_CONNECTING 
AUTHENTICATOR_PAE_STATE_AUTHENTICATING 
AUTHENTICATOR_PAE_STATE_AUTHENTICATED 
AUTHENTICATOR_PAE_STATE_ABORTING 
AUTHENTICATOR_PAE_STATE_HELD 
AUTHENTICATOR_PAE_STATE_FORCE_AUTH 
AUTHENTICATOR_PAE_STATE_FORCE_UNAUTH 

Definition at line 47 of file authenticator_pae_fsm.h.

◆ AuthenticatorPortMode

Port modes.

Enumerator
AUTHENTICATOR_PORT_MODE_FORCE_UNAUTH 
AUTHENTICATOR_PORT_MODE_FORCE_AUTH 
AUTHENTICATOR_PORT_MODE_AUTO 

Definition at line 78 of file authenticator_pae_fsm.h.

◆ AuthenticatorPortStatus

Port status.

Enumerator
AUTHENTICATOR_PORT_STATUS_UNKNOWN 
AUTHENTICATOR_PORT_STATUS_UNAUTH 
AUTHENTICATOR_PORT_STATUS_AUTH 

Definition at line 66 of file authenticator_pae_fsm.h.

Function Documentation

◆ authenticatorPaeChangeState()

void authenticatorPaeChangeState ( AuthenticatorPort port,
AuthenticatorPaeState  newState 
)

Update authenticator PAE state.

Parameters
[in]portPointer to the port context
[in]newStateNew state to switch to

Definition at line 273 of file authenticator_pae_fsm.c.

◆ authenticatorPaeFsm()

void authenticatorPaeFsm ( AuthenticatorPort port)

Authenticator PAE state machine implementation.

Parameters
[in]portPointer to the port context

Definition at line 79 of file authenticator_pae_fsm.c.

◆ authenticatorPaeInitFsm()

void authenticatorPaeInitFsm ( AuthenticatorPort port)

Authenticator PAE state machine initialization.

Parameters
[in]portPointer to the port context

Definition at line 67 of file authenticator_pae_fsm.c.