eap_md5.c File Reference

MD5-Challenge authentication method. More...

#include "eap/eap.h"
#include "eap/eap_md5.h"
#include "eap/eap_debug.h"
#include "hash/md5.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   EAP_TRACE_LEVEL
 

Functions

error_t eapMd5CheckRequest (SupplicantContext *context, const EapMd5Packet *request, size_t length)
 Check incoming MD5 challenge request. More...
 
void eapMd5ProcessRequest (SupplicantContext *context, const EapMd5Packet *request, size_t length)
 Process incoming MD5 challenge request. More...
 
void eapMd5BuildResponse (SupplicantContext *context)
 Build MD5 challenge response. More...
 

Detailed Description

MD5-Challenge authentication method.

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.4

Definition in file eap_md5.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   EAP_TRACE_LEVEL

Definition at line 32 of file eap_md5.c.

Function Documentation

◆ eapMd5BuildResponse()

void eapMd5BuildResponse ( SupplicantContext context)

Build MD5 challenge response.

Parameters
[in]contextPointer to the 802.1X supplicant context

Definition at line 102 of file eap_md5.c.

◆ eapMd5CheckRequest()

error_t eapMd5CheckRequest ( SupplicantContext context,
const EapMd5Packet request,
size_t  length 
)

Check incoming MD5 challenge request.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]requestPointer to the received request
[in]lengthLength of the request, in bytes

Definition at line 52 of file eap_md5.c.

◆ eapMd5ProcessRequest()

void eapMd5ProcessRequest ( SupplicantContext context,
const EapMd5Packet request,
size_t  length 
)

Process incoming MD5 challenge request.

Parameters
[in]contextPointer to the 802.1X supplicant context
[in]requestPointer to the received request
[in]lengthLength of the request, in bytes

Definition at line 75 of file eap_md5.c.