eap_peer_procedures.h File Reference

EAP peer state machine procedures. More...

Go to the source code of this file.

Functions

void eapParseReq (SupplicantContext *context)
 Determine the code, identifier value, and type of the current request. More...
 
bool_t eapCheckReq (SupplicantContext *context)
 Test for the validity of a message. More...
 
void eapProcessReq (SupplicantContext *context)
 Parse and process a request. More...
 
void eapBuildResp (SupplicantContext *context)
 Create a response message. More...
 
void eapProcessIdentity (SupplicantContext *context)
 Process the contents of Identity request. More...
 
void eapBuildIdentity (SupplicantContext *context)
 Create the appropriate Identity response. More...
 
void eapProcessNotify (SupplicantContext *context)
 Process the contents of Notification request. More...
 
void eapBuildNotify (SupplicantContext *context)
 Create the appropriate Notification response. More...
 
void eapBuildNak (SupplicantContext *context)
 Create a NAK response. More...
 
uint8_t * eapPeerGetKey (SupplicantContext *context)
 Obtain key material for use by EAP or lower layers. More...
 
bool_t eapIsKeyAvailable (SupplicantContext *context)
 Check whether EAP key is available. More...
 
bool_t eapAllowMethod (SupplicantContext *context, EapMethodType method)
 Check whether the specified EAP method is allowed. More...
 

Detailed Description

EAP peer state machine procedures.

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 eap_peer_procedures.h.

Function Documentation

◆ eapAllowMethod()

bool_t eapAllowMethod ( SupplicantContext context,
EapMethodType  method 
)

Check whether the specified EAP method is allowed.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]methodEAP method
Returns
TRUE if the method is allowed, else FALSE

Definition at line 444 of file eap_peer_procedures.c.

◆ eapBuildIdentity()

void eapBuildIdentity ( SupplicantContext context)

Create the appropriate Identity response.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 254 of file eap_peer_procedures.c.

◆ eapBuildNak()

void eapBuildNak ( SupplicantContext context)

Create a NAK response.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 345 of file eap_peer_procedures.c.

◆ eapBuildNotify()

void eapBuildNotify ( SupplicantContext context)

Create the appropriate Notification response.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 308 of file eap_peer_procedures.c.

◆ eapBuildResp()

void eapBuildResp ( SupplicantContext context)

Create a response message.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 207 of file eap_peer_procedures.c.

◆ eapCheckReq()

bool_t eapCheckReq ( SupplicantContext context)

Test for the validity of a message.

Parameters
[in]contextPointer to the 802.1X supplicant context
Returns
TRUE if the message is invalid and must be ignored, else FALSE

Definition at line 111 of file eap_peer_procedures.c.

◆ eapIsKeyAvailable()

bool_t eapIsKeyAvailable ( SupplicantContext context)

Check whether EAP key is available.

Parameters
[in]contextPointer to the 802.1X supplicant context
Returns
Boolean

Definition at line 427 of file eap_peer_procedures.c.

◆ eapParseReq()

void eapParseReq ( SupplicantContext context)

Determine the code, identifier value, and type of the current request.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 51 of file eap_peer_procedures.c.

◆ eapPeerGetKey()

uint8_t* eapPeerGetKey ( SupplicantContext context)

Obtain key material for use by EAP or lower layers.

Parameters
[in]contextPointer to the 802.1X supplicant context
Returns
EAP key

Definition at line 411 of file eap_peer_procedures.c.

◆ eapProcessIdentity()

void eapProcessIdentity ( SupplicantContext context)

Process the contents of Identity request.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 242 of file eap_peer_procedures.c.

◆ eapProcessNotify()

void eapProcessNotify ( SupplicantContext context)

Process the contents of Notification request.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 296 of file eap_peer_procedures.c.

◆ eapProcessReq()

void eapProcessReq ( SupplicantContext context)

Parse and process a request.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 154 of file eap_peer_procedures.c.