auth.h (cd9647a100862f877a4459adffd24751a7026122) | auth.h (b6217683dc0269a53b799399522dbdfb5a4919cc) |
---|---|
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.10.2.4 1998/03/01 01:07:38 brian Exp $ | 18 * $Id: auth.h,v 1.10.2.5 1998/04/03 19:23:52 brian Exp $ |
19 * 20 * TODO: 21 */ 22 23struct physical; 24 | 19 * 20 * TODO: 21 */ 22 23struct physical; 24 |
25typedef enum { 26 VALID, 27 INVALID, 28 NOT_FOUND 29} LOCAL_AUTH_VALID; 30 | |
31struct authinfo { 32 void (*ChallengeFunc)(struct authinfo *, int, struct physical *); 33 struct pppTimer authtimer; 34 int retry; 35 int id; 36 struct physical *physical; 37 struct { 38 u_int fsmretry; 39 } cfg; 40}; 41 42extern void authinfo_Init(struct authinfo *); 43 44extern const char *Auth2Nam(u_short); | 25struct authinfo { 26 void (*ChallengeFunc)(struct authinfo *, int, struct physical *); 27 struct pppTimer authtimer; 28 int retry; 29 int id; 30 struct physical *physical; 31 struct { 32 u_int fsmretry; 33 } cfg; 34}; 35 36extern void authinfo_Init(struct authinfo *); 37 38extern const char *Auth2Nam(u_short); |
45extern LOCAL_AUTH_VALID LocalAuthValidate(const char *, const char *, const char *); | |
46extern void StopAuthTimer(struct authinfo *); 47extern void StartAuthChallenge(struct authinfo *, struct physical *, 48 void (*fn)(struct authinfo *, int, struct physical *)); | 39extern void StopAuthTimer(struct authinfo *); 40extern void StartAuthChallenge(struct authinfo *, struct physical *, 41 void (*fn)(struct authinfo *, int, struct physical *)); |
49extern void LocalAuthInit(void); | |
50extern int AuthValidate(struct bundle *, const char *, const char *, 51 const char *, struct physical *); 52extern char *AuthGetSecret(struct bundle *, const char *, const char *, int, 53 int, struct physical *); | 42extern int AuthValidate(struct bundle *, const char *, const char *, 43 const char *, struct physical *); 44extern char *AuthGetSecret(struct bundle *, const char *, const char *, int, 45 int, struct physical *); |