1 | /*
|
---|
2 | * TINET (TCP/IP Protocol Stack)
|
---|
3 | *
|
---|
4 | * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
|
---|
5 | * Tomakomai National College of Technology, JAPAN
|
---|
6 | *
|
---|
7 | * 上記著作権者は,以下の (1)~(4) の条件か,Free Software Foundation
|
---|
8 | * によって公表されている GNU General Public License の Version 2 に記
|
---|
9 | * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
|
---|
10 | * を改変したものを含む.以下同じ)を使用・複製・改変・再配布(以下,
|
---|
11 | * 利用と呼ぶ)することを無償で許諾する.
|
---|
12 | * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
|
---|
13 | * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
|
---|
14 | * スコード中に含まれていること.
|
---|
15 | * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
|
---|
16 | * 用できる形で再配布する場合には,再配布に伴うドキュメント(利用
|
---|
17 | * 者マニュアルなど)に,上記の著作権表示,この利用条件および下記
|
---|
18 | * の無保証規定を掲載すること.
|
---|
19 | * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
|
---|
20 | * 用できない形で再配布する場合には,次の条件を満たすこと.
|
---|
21 | * (a) 再配布に伴うドキュメント(利用者マニュアルなど)に,上記の著
|
---|
22 | * 作権表示,この利用条件および下記の無保証規定を掲載すること.
|
---|
23 | * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
|
---|
24 | * 害からも,上記著作権者およびTOPPERSプロジェクトを免責すること.
|
---|
25 | *
|
---|
26 | * 本ソフトウェアは,無保証で提供されているものである.上記著作権者お
|
---|
27 | * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
|
---|
28 | * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
|
---|
29 | * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
|
---|
30 | *
|
---|
31 | * @(#) $Id: ppp_upap.h 315 2017-07-23 05:29:40Z coas-nagasima $
|
---|
32 | */
|
---|
33 |
|
---|
34 | /*
|
---|
35 | * upap.h - User/Password Authentication Protocol definitions.
|
---|
36 | *
|
---|
37 | * Copyright (c) 1989 Carnegie Mellon University.
|
---|
38 | * All rights reserved.
|
---|
39 | *
|
---|
40 | * Redistribution and use in source and binary forms are permitted
|
---|
41 | * provided that the above copyright notice and this paragraph are
|
---|
42 | * duplicated in all such forms and that any documentation,
|
---|
43 | * advertising materials, and other materials related to such
|
---|
44 | * distribution and use acknowledge that the software was developed
|
---|
45 | * by Carnegie Mellon University. The name of the
|
---|
46 | * University may not be used to endorse or promote products derived
|
---|
47 | * from this software without specific prior written permission.
|
---|
48 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
49 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
50 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
51 | *
|
---|
52 | * $FreeBSD: src/usr.sbin/pppd/upap.h,v 1.6.2.1 1999/08/29 15:47:10 peter Exp $
|
---|
53 | */
|
---|
54 |
|
---|
55 | /*
|
---|
56 | * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
|
---|
57 | *
|
---|
58 | * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
|
---|
59 | *
|
---|
60 | * Redistribution and use in source and binary forms are permitted
|
---|
61 | * provided that the above copyright notice and this paragraph are
|
---|
62 | * duplicated in all such forms and that any documentation,
|
---|
63 | * advertising materials, and other materials related to such
|
---|
64 | * distribution and use acknowledge that the software was developed
|
---|
65 | * by the Internet Initiative Japan. The name of the
|
---|
66 | * IIJ may not be used to endorse or promote products derived
|
---|
67 | * from this software without specific prior written permission.
|
---|
68 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
69 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
70 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
---|
71 | *
|
---|
72 | * $FreeBSD: src/usr.sbin/ppp/pap.h,v 1.11 1999/08/28 01:18:37 peter Exp $
|
---|
73 | *
|
---|
74 | * TODO:
|
---|
75 | */
|
---|
76 |
|
---|
77 | #ifndef _PPP_UPAP_H_
|
---|
78 | #define _PPP_UPAP_H_
|
---|
79 |
|
---|
80 | #ifdef SUPPORT_PPP
|
---|
81 |
|
---|
82 | /*
|
---|
83 | * PAP の制御コード
|
---|
84 | */
|
---|
85 |
|
---|
86 | #define PAP_AUTHREQ UINT_C(1) /* 認証要求 */
|
---|
87 | #define PAP_AUTHACK UINT_C(2) /* 認証 ACK */
|
---|
88 | #define PAP_AUTHNAK UINT_C(3) /* 認証 NAK */
|
---|
89 |
|
---|
90 | /*
|
---|
91 | * クライアントの状態
|
---|
92 | */
|
---|
93 |
|
---|
94 | #define PAP_CS_INIT UINT_C(0) /* 未接続 */
|
---|
95 | #define PAP_CS_CLOSED UINT_C(1) /* 接続、未認証 */
|
---|
96 | #define PAP_CS_PENDING UINT_C(2) /* 未接続、認証 */
|
---|
97 | #define PAP_CS_AUTHREQ UINT_C(3) /* 認証要求送信済み */
|
---|
98 | #define PAP_CS_OPEN UINT_C(4) /* ACK 受信 */
|
---|
99 | #define PAP_CS_BADAUTH UINT_C(5) /* NAK 受信 */
|
---|
100 |
|
---|
101 | /*
|
---|
102 | * サーバの状態
|
---|
103 | */
|
---|
104 |
|
---|
105 | #define PAP_SS_INIT UINT_C(0) /* 未接続 */
|
---|
106 | #define PAP_SS_CLOSED UINT_C(1) /* 接続、未認証 */
|
---|
107 | #define PAP_SS_PENDING UINT_C(2) /* 未接続、認証 */
|
---|
108 | #define PAP_SS_LISTEN UINT_C(3) /* 認証要求受信待ち */
|
---|
109 | #define PAP_SS_OPEN UINT_C(4) /* ACK 送信 */
|
---|
110 | #define PAP_SS_BADAUTH UINT_C(5) /* NAK 送信 */
|
---|
111 |
|
---|
112 | /*
|
---|
113 | * 変数
|
---|
114 | */
|
---|
115 |
|
---|
116 | extern T_PPP_PROTENT pap_protent;
|
---|
117 |
|
---|
118 | /*
|
---|
119 | * 関数
|
---|
120 | */
|
---|
121 |
|
---|
122 | extern void upap_auth_client (void);
|
---|
123 | extern void upap_auth_server (void);
|
---|
124 |
|
---|
125 | #endif /* of #ifdef SUPPORT_PPP */
|
---|
126 |
|
---|
127 | #endif /* of #ifndef _PPP_UPAP_H_ */
|
---|