supplicant.c File Reference

802.1X supplicant More...

Go to the source code of this file.

Macros

#define TRACE_LEVEL   SUPPLICANT_TRACE_LEVEL
 

Functions

void supplicantGetDefaultSettings (SupplicantSettings *settings)
 Initialize settings with default values. More...
 
error_t supplicantInit (SupplicantContext *context, const SupplicantSettings *settings)
 Initialize 802.1X supplicant context. More...
 
error_t supplicantSetUsername (SupplicantContext *context, const char_t *username)
 Set user name. More...
 
error_t supplicantSetPassword (SupplicantContext *context, const char_t *password)
 Set password. More...
 
error_t supplicantStart (SupplicantContext *context)
 Start 802.1X supplicant. More...
 
error_t supplicantStop (SupplicantContext *context)
 Stop 802.1X supplicant. More...
 
void supplicantTask (SupplicantContext *context)
 802.1X supplicant task More...
 
void supplicantDeinit (SupplicantContext *context)
 Release 802.1X supplicant context. More...
 

Detailed Description

802.1X supplicant

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 supplicant.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   SUPPLICANT_TRACE_LEVEL

Definition at line 32 of file supplicant.c.

Function Documentation

◆ supplicantDeinit()

void supplicantDeinit ( SupplicantContext context)

Release 802.1X supplicant context.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 424 of file supplicant.c.

◆ supplicantGetDefaultSettings()

void supplicantGetDefaultSettings ( SupplicantSettings settings)

Initialize settings with default values.

Parameters
[out]settingsStructure that contains 802.1X supplicant settings

Definition at line 49 of file supplicant.c.

◆ supplicantInit()

error_t supplicantInit ( SupplicantContext context,
const SupplicantSettings settings 
)

Initialize 802.1X supplicant context.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]settings802.1X supplicant specific settings
Returns
Error code

Definition at line 84 of file supplicant.c.

◆ supplicantSetPassword()

error_t supplicantSetPassword ( SupplicantContext context,
const char_t password 
)

Set password.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]passwordNULL-terminated string containing the password
Returns
Error code

Definition at line 174 of file supplicant.c.

◆ supplicantSetUsername()

error_t supplicantSetUsername ( SupplicantContext context,
const char_t username 
)

Set user name.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]usernameNULL-terminated string containing the user name
Returns
Error code

Definition at line 148 of file supplicant.c.

◆ supplicantStart()

error_t supplicantStart ( SupplicantContext context)

Start 802.1X supplicant.

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

Definition at line 204 of file supplicant.c.

◆ supplicantStop()

error_t supplicantStop ( SupplicantContext context)

Stop 802.1X supplicant.

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

Definition at line 302 of file supplicant.c.

◆ supplicantTask()

void supplicantTask ( SupplicantContext context)

802.1X supplicant task

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 343 of file supplicant.c.