chp_defs.h

来自「基于nucleus操作系统的GPRS无线数据传输终端全套源文件。包括支持ARM7」· C头文件 代码 · 共 59 行

H
59
字号
/***************************************************************************
*
*      Copyright (c) 1997 - 2001 by Accelerated Technology, Inc.
*
* PROPRIETARY RIGHTS of Accelerated Technology are involved in the subject
* matter of this material.  All manufacturing, reproduction, use and sales
* rights pertaining to this subject matter are governed by the license
* agreement.  The recipient of this software implicity accepts the terms
* of the license.
*
***************************************************************************/
/***************************************************************************
*
*   FILENAME                                                VERSION
*
*       CHP_DEFS.H                                          2.4
*
*   COMPONENT
*
*       CHAP
*
*   DESCRIPTION
*
*       This file contains the constant definitions to support the challenge
*       handshake authentication protocol, CHAP.C
*
*   DATA STRUCTURES
*
*       CHAP_LAYER
*
*   DEPENDENCIES
*
*       None
*
***************************************************************************/
#ifndef CHP_DEFS_H
#define CHP_DEFS_H

#define CHAP_CHALLENGE  1
#define CHAP_RESPONSE   2
#define CHAP_SUCCESS    3
#define CHAP_FAILURE    4

#define CHAP_VALUE_LENGTH_OFFSET    4
#define CHAP_VALUE_OFFSET           5
#define CHAP_MD5_VALUE_SIZE         16
#define CHAP_CHALLENGE_VALUE_SIZE   4
#define CHAP_MAX_VALUE_SIZE         256

/* Define the structure that will hold information used during
   CHAP authentication. */
typedef struct _chap_layer
{
    UINT32  challenge_value;
    UINT8   challenge_identifier;
} CHAP_LAYER;

#endif /* CHP_DEFS_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?