xref: /freebsd/usr.sbin/ppp/auth.h (revision b808c7565b0e1f9c3ee91cd1d817b15e4c77fe45)
1b808c756SAtsushi Murai /*
2b808c756SAtsushi Murai  *	    Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3b808c756SAtsushi Murai  *
4b808c756SAtsushi Murai  *   Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5b808c756SAtsushi Murai  *
6b808c756SAtsushi Murai  * Redistribution and use in source and binary forms are permitted
7b808c756SAtsushi Murai  * provided that the above copyright notice and this paragraph are
8b808c756SAtsushi Murai  * duplicated in all such forms and that any documentation,
9b808c756SAtsushi Murai  * advertising materials, and other materials related to such
10b808c756SAtsushi Murai  * distribution and use acknowledge that the software was developed
11b808c756SAtsushi Murai  * by the Internet Initiative Japan.  The name of the
12b808c756SAtsushi Murai  * IIJ may not be used to endorse or promote products derived
13b808c756SAtsushi Murai  * from this software without specific prior written permission.
14b808c756SAtsushi Murai  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15b808c756SAtsushi Murai  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16b808c756SAtsushi Murai  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17b808c756SAtsushi Murai  *
18b808c756SAtsushi Murai  * $Id:$
19b808c756SAtsushi Murai  *
20b808c756SAtsushi Murai  *	TODO:
21b808c756SAtsushi Murai  */
22b808c756SAtsushi Murai 
23b808c756SAtsushi Murai #ifndef _AUTH_H_
24b808c756SAtsushi Murai #define	_AUTH_H_
25b808c756SAtsushi Murai 
26b808c756SAtsushi Murai typedef enum { VALID, INVALID, NOT_FOUND } LOCAL_AUTH_VALID;
27b808c756SAtsushi Murai LOCAL_AUTH_VALID	LocalAuthValidate( char *, char *, char *);
28b808c756SAtsushi Murai 
29b808c756SAtsushi Murai struct authinfo {
30b808c756SAtsushi Murai   void (*ChallengeFunc)();
31b808c756SAtsushi Murai   struct pppTimer authtimer;
32b808c756SAtsushi Murai   int retry;
33b808c756SAtsushi Murai   int id;
34b808c756SAtsushi Murai };
35b808c756SAtsushi Murai extern struct authinfo AuthPapInfo;
36b808c756SAtsushi Murai extern struct authinfo AuthChapInfo;
37b808c756SAtsushi Murai 
38b808c756SAtsushi Murai extern void SendPapChallenge __P((int));
39b808c756SAtsushi Murai extern void SendChapChallenge __P((int));
40b808c756SAtsushi Murai extern void StopAuthTimer __P((struct authinfo *));
41b808c756SAtsushi Murai extern void StartAuthChallenge __P((struct authinfo *));
42b808c756SAtsushi Murai #endif
43