ike_eap_md5.c File Reference

EAP-MD5 authentication method. More...

#include "ike/ike.h"
#include "ike/ike_eap.h"
#include "ike/ike_eap_md5.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define TRACE_LEVEL   IKE_TRACE_LEVEL
 

Functions

error_t ikeProcessEapMd5Request (IkeSaEntry *sa, const IkeEapMd5Packet *request, size_t length)
 Process EAP-MD5 request. More...
 
error_t ikeFormatEapMd5Response (IkeSaEntry *sa, uint8_t *p, size_t *written)
 Format EAP-MD5 response. More...
 

Detailed Description

EAP-MD5 authentication method.

License

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

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

This file is part of CycloneIPSEC 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.6.8

Definition in file ike_eap_md5.c.

Macro Definition Documentation

◆ TRACE_LEVEL

#define TRACE_LEVEL   IKE_TRACE_LEVEL

Definition at line 32 of file ike_eap_md5.c.

Function Documentation

◆ ikeFormatEapMd5Response()

error_t ikeFormatEapMd5Response ( IkeSaEntry *  sa,
uint8_t *  p,
size_t *  written 
)

Format EAP-MD5 response.

Parameters
[in]saPointer to the IKE SA
[out]pBuffer where to format the EAP-MD5 packet
[out]writtenLength of the resulting EAP-MD5 packet
Returns
Error code

Definition at line 114 of file ike_eap_md5.c.

◆ ikeProcessEapMd5Request()

error_t ikeProcessEapMd5Request ( IkeSaEntry *  sa,
const IkeEapMd5Packet *  request,
size_t  length 
)

Process EAP-MD5 request.

Parameters
[in]saPointer to the IKE SA
[in]packetPointer to the EAP-MD5 request
[in]lengthLength of the EAP-MD5 request, in bytes
Returns
Error code

Definition at line 52 of file ike_eap_md5.c.