pw_list.c

来自「PPP协议C语言源程序」· C语言 代码 · 共 64 行

C
64
字号
/***************************************************************************
*
*      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
*
*       PW_LIST.C                                           2.4
*
* COMPONENT
*
*       PPP password list
*
* DESCRIPTION
*
*       This file contains the data structure that holds a list of allowed
*       users and their passwords.
*
* DATA STRUCTURES
*
*       struct pw_list _passwordlist
*
* DEPENDENCIES
*
*       nucleus.h
*       target.h
*       externs.h
*       tcp_errs.h
*       rtab.h
*       rip2.h
*       ppp.h
*
****************************************************************************/
#include "plus/nucleus.h"
#include "net/target.h"        /* Compiler typedefs for data type sizes */
#include "net/inc/externs.h"
#include "net/inc/tcp_errs.h"
#include "net/inc/rtab.h"
#include "net/inc/rip2.h"

#include "ppp/inc/nu_ppp.h"

/* This is the password list. When authenticating a user it is this list
   that will be used to compare the ID and PW. The length of the ID and PW
   pair is define in PPP_OPTS.H. The only restriction placed on this list is
   that the last entry MUST end with {"0", "0"}.
*/

struct pw_list _passwordlist [] =
{
    {"jon", "doe"},
    {"fred", "fish"},
    {"joe", "blow"},
    {"0", "0"}
};

⌨️ 快捷键说明

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