CHAP (Challenge Handshake Authentication Protocol) More...
#include "core/net.h"
#include "ppp/ppp_debug.h"
#include "ppp/lcp.h"
#include "ppp/ipcp.h"
#include "ppp/ipv6cp.h"
#include "ppp/chap.h"
#include "debug.h"
#include "core/crypto.h"
#include "hash/md5.h"
Go to the source code of this file.
Macros | |
#define TRACE_LEVEL PPP_TRACE_LEVEL | |
Functions | |
error_t chapStartAuth (PppContext *context) | |
Start CHAP authentication. More... | |
error_t chapAbortAuth (PppContext *context) | |
Abort CHAP authentication. More... | |
void chapTick (PppContext *context) | |
CHAP timer handler. More... | |
void chapProcessPacket (PppContext *context, const PppPacket *packet, size_t length) | |
Process an incoming CHAP packet. More... | |
error_t chapProcessChallenge (PppContext *context, const ChapChallengePacket *challengePacket, size_t length) | |
Process Challenge packet. More... | |
error_t chapProcessResponse (PppContext *context, const ChapResponsePacket *responsePacket, size_t length) | |
Process Response packet. More... | |
error_t chapProcessSuccess (PppContext *context, const ChapSuccessPacket *successPacket, size_t length) | |
Process Success packet. More... | |
error_t chapProcessFailure (PppContext *context, const ChapFailurePacket *failurePacket, size_t length) | |
Process Failure packet. More... | |
error_t chapSendChallenge (PppContext *context) | |
Send Challenge packet. More... | |
error_t chapSendResponse (PppContext *context, const uint8_t *value) | |
Send Response packet. More... | |
error_t chapSendSuccess (PppContext *context) | |
Send Success packet. More... | |
error_t chapSendFailure (PppContext *context) | |
Send Failure packet. More... | |
bool_t chapCheckPassword (PppContext *context, const char_t *password) | |
Password verification. More... | |
Detailed Description
CHAP (Challenge Handshake Authentication Protocol)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP 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.
- Version
- 2.5.0
Definition in file chap.c.
Macro Definition Documentation
◆ TRACE_LEVEL
Function Documentation
◆ chapAbortAuth()
error_t chapAbortAuth | ( | PppContext * | context | ) |
◆ chapCheckPassword()
bool_t chapCheckPassword | ( | PppContext * | context, |
const char_t * | password | ||
) |
◆ chapProcessChallenge()
error_t chapProcessChallenge | ( | PppContext * | context, |
const ChapChallengePacket * | challengePacket, | ||
size_t | length | ||
) |
◆ chapProcessFailure()
error_t chapProcessFailure | ( | PppContext * | context, |
const ChapFailurePacket * | failurePacket, | ||
size_t | length | ||
) |
◆ chapProcessPacket()
void chapProcessPacket | ( | PppContext * | context, |
const PppPacket * | packet, | ||
size_t | length | ||
) |
◆ chapProcessResponse()
error_t chapProcessResponse | ( | PppContext * | context, |
const ChapResponsePacket * | responsePacket, | ||
size_t | length | ||
) |
◆ chapProcessSuccess()
error_t chapProcessSuccess | ( | PppContext * | context, |
const ChapSuccessPacket * | successPacket, | ||
size_t | length | ||
) |
◆ chapSendChallenge()
error_t chapSendChallenge | ( | PppContext * | context | ) |
◆ chapSendFailure()
error_t chapSendFailure | ( | PppContext * | context | ) |
◆ chapSendResponse()
error_t chapSendResponse | ( | PppContext * | context, |
const uint8_t * | value | ||
) |
◆ chapSendSuccess()
error_t chapSendSuccess | ( | PppContext * | context | ) |
◆ chapStartAuth()
error_t chapStartAuth | ( | PppContext * | context | ) |
◆ chapTick()
void chapTick | ( | PppContext * | context | ) |