eap_md5.h File Reference

MD5-Challenge authentication method. More...

#include "eap/eap.h"
#include "supplicant/supplicant.h"

Go to the source code of this file.

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

Variables

typedef __packed_struct
 EAP-MD5 packet. More...
 
uint8_t identifier
 
uint16_t length
 
uint8_t type
 
uint8_t valueSize
 
uint8_t value []
 
 EapMd5Packet
 

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

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.

Variable Documentation

◆ __packed_struct

typedef __packed_struct
Initial value:
{
uint8_t code

EAP-MD5 packet.

Definition at line 55 of file eap_md5.h.

◆ EapMd5Packet

EapMd5Packet

Definition at line 63 of file eap_md5.h.

◆ identifier

uint8_t identifier

Definition at line 58 of file eap_md5.h.

◆ length

uint16_t length

Definition at line 59 of file eap_md5.h.

◆ type

uint8_t type

Definition at line 60 of file eap_md5.h.

◆ value

uint8_t value[]

Definition at line 62 of file eap_md5.h.

◆ valueSize

uint8_t valueSize

Definition at line 61 of file eap_md5.h.

uint8_t code
Definition: coap_common.h:179