⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wvpapchap.h

📁 wvdial 软件包是一个自动拨号程序
💻 H
字号:
/* * Worldvisions Weaver Software: *   Copyright (C) 1997-2003 Net Integration Technologies, Inc. * * Re-write of wvpapsecrets.h.  This one supports CHAP as well, and is also * much safer. */#ifndef __WVPAPCHAP_H#define __WVPAPCHAP_H#include "wvconfemu.h"#include "wvlinklist.h"#include "wvstring.h"#define PAP_SECRETS	"/etc/ppp/pap-secrets"#define CHAP_SECRETS	"/etc/ppp/chap-secrets"#define REMOTE_SECRET	"wvdial"class WvPapChap/*************/{public:    WvPapChap()    	: pap_success( true ), chap_success( true ) {}    ~WvPapChap() {}    void put_secret( WvString _username, WvString _password, WvString _remote );    bool isok_pap() const    	{ return( pap_success ); }    bool isok_chap() const    	{ return( chap_success ); }private:    WvStringList contents;    bool	 pap_success;    bool	 chap_success;    bool load_file( char * filename );    bool write_file( char * filename );    void do_secret( const char * username, const char * password,		    const char * remote );};#endif // __WVPAPCHAP_H

⌨️ 快捷键说明

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