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