📄 testradeap.h
字号:
/* Copyright 1984 - 2006 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history____________________ 10jan06,snd Fix for SPR 113557, changed EAP_PACKET and added new defines. Added MD5_RESULT_LENGTH for CCI porting*/ /************************************************************************//* Copyright (C) 1993 - 1999 RouterWare, Inc. *//* Unpublished - rights reserved under the Copyright Laws of the *//* United States. Use, duplication, or disclosure by the *//* Government is subject to restrictions as set forth in *//* subparagraph (c)(1)(ii) of the Rights in Technical Data and *//* Computer Software clause at 252.227-7013. *//* RouterWare, Inc., 3961 MacArthur Suite 212 Newport Beach, CA 92660 *//************************************************************************/#include "testrad.h"#define RADIUS_MAX_ATTRIBUTE_LEN 256 #define VARIABLE_NUMBER_OF_BYTES 1#define MD5_RESULT_LENGTH 16enum EAP_CODE{ EAP_REQUEST = 1, EAP_RESPONSE = 2, EAP_SUCCESS = 3, EAP_FAILURE = 4};enum EAP_TYPE{ IDENTITY = 1, NOTIFICATION = 2, NAK = 3, MD5_CHALLENGE = 4, ONE_TIME_PASSWORD = 5, TOKEN = 6};typedef struct EAP_PACKET{ enum EAP_CODE code; BYTE identifier; USHORT length; BYTE type; BYTE data[VARIABLE_NUMBER_OF_BYTES];} EAP_PACKET;typedef struct USER_HANDLE{ RADIUS_REQUEST_CALLBACKS *p_callbacks; RADIUS_ATTRIBUTE_LIST_HANDLE attribute_list_handle;} USER_HANDLE;char* username = "user1";char* user_password = "password";RADIUS_SERVER_HANDLE serverHandle;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -