testradeap.h

来自「vxworks下radius协议栈 的源代码」· C头文件 代码 · 共 57 行

H
57
字号
/* Copyright 1984 - 2000 Wind River Systems, Inc. */#include "copyright_wrs.h"/************************************************************************//*	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 <netinet\in.h>#include <logLib.h>#include "radius.h"#include "testrad.h"enum 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{	BYTE_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;BYTE* username = "user1";BYTE* user_password = "password";RADIUS_SERVER_HANDLE serverHandle;

⌨️ 快捷键说明

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