Webserver+3d print
pap.h File Reference
PAP (Password Authentication Protocol) More...
Go to the source code of this file.
Data Structures | |
struct | PapFsm |
PAP finite state machine. More... | |
Enumerations | |
enum | PapState |
PAP states. More... | |
enum | PapCode { PAP_CODE_AUTH_REQ = 1, PAP_CODE_AUTH_ACK = 2, PAP_CODE_AUTH_NAK = 3 } |
Code field values. More... | |
Functions | |
error_t | papStartAuth (PppContext *context) |
Start PAP authentication. | |
error_t | papAbortAuth (PppContext *context) |
Abort PAP authentication. | |
void | papTick (PppContext *context) |
PAP timer handler. | |
void | papProcessPacket (PppContext *context, const PppPacket *packet, size_t length) |
Process an incoming PAP packet. | |
error_t | papProcessAuthReq (PppContext *context, const PapAuthReqPacket *authReqPacket, size_t length) |
Process Authenticate-Request packet. | |
error_t | papProcessAuthAck (PppContext *context, const PapAuthAckPacket *authAckPacket, size_t length) |
Process Authenticate-Ack packet. | |
error_t | papProcessAuthNak (PppContext *context, const PapAuthNakPacket *authNakPacket, size_t length) |
Process Authenticate-Nak packet. | |
error_t | papSendAuthReq (PppContext *context) |
Send Authenticate-Request packet. | |
error_t | papSendAuthAck (PppContext *context, uint8_t identifier) |
Send Authenticate-Ack packet. | |
error_t | papSendAuthNak (PppContext *context, uint8_t identifier) |
Send Authenticate-Nak packet. | |
bool_t | papCheckPassword (PppContext *context, const char_t *password) |
Password verification. |
Detailed Description
PAP (Password Authentication Protocol)
License
Copyright (C) 2010-2017 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:
- 1.7.6
Definition in file pap.h.
Enumeration Type Documentation
enum PapCode |
Function Documentation
error_t papAbortAuth | ( | PppContext * | context ) |
bool_t papCheckPassword | ( | PppContext * | context, |
const char_t * | password | ||
) |
error_t papProcessAuthAck | ( | PppContext * | context, |
const PapAuthAckPacket * | authAckPacket, | ||
size_t | length | ||
) |
error_t papProcessAuthNak | ( | PppContext * | context, |
const PapAuthNakPacket * | authNakPacket, | ||
size_t | length | ||
) |
error_t papProcessAuthReq | ( | PppContext * | context, |
const PapAuthReqPacket * | authReqPacket, | ||
size_t | length | ||
) |
void papProcessPacket | ( | PppContext * | context, |
const PppPacket * | packet, | ||
size_t | length | ||
) |
error_t papSendAuthAck | ( | PppContext * | context, |
uint8_t | identifier | ||
) |
error_t papSendAuthNak | ( | PppContext * | context, |
uint8_t | identifier | ||
) |
error_t papSendAuthReq | ( | PppContext * | context ) |
error_t papStartAuth | ( | PppContext * | context ) |
Generated on Tue Jul 12 2022 17:10:21 by
