summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/auth.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
committerbrian <brian@FreeBSD.org>1997-10-26 01:04:02 +0000
commit486b8925ecb0d408e403474828e20c1cce8aaec8 (patch)
treecca66974908224bf517868aaafb2e4acd1abe88d /usr.sbin/ppp/auth.h
parent1d2927c9fac7bcfe68bf6ab502c716adc91d6f09 (diff)
downloadFreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.zip
FreeBSD-src-486b8925ecb0d408e403474828e20c1cce8aaec8.tar.gz
Cosmetic (no functional changes):
o Add missing $Id$s o Move extern decls from .c -> .h files o Staticize o Remove #includes from .h files o style(9)ify includes o bcopy -> memcpy bzero -> memset bcmp -> memcmp index -> strchr rindex -> strrchr o Move timeout.h -> timer.h (making it consistent w/ timer.c) o Add -Wmissing-prototypes
Diffstat (limited to 'usr.sbin/ppp/auth.h')
-rw-r--r--usr.sbin/ppp/auth.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/usr.sbin/ppp/auth.h b/usr.sbin/ppp/auth.h
index 651f17e..8a81cbc 100644
--- a/usr.sbin/ppp/auth.h
+++ b/usr.sbin/ppp/auth.h
@@ -15,18 +15,16 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: auth.h,v 1.7 1997/08/25 00:29:05 brian Exp $
+ * $Id: auth.h,v 1.8 1997/09/04 00:38:18 brian Exp $
*
* TODO:
*/
-#ifndef _AUTH_H_
-#define _AUTH_H_
-
typedef enum {
- VALID, INVALID, NOT_FOUND
-} LOCAL_AUTH_VALID;
-LOCAL_AUTH_VALID LocalAuthValidate(char *, char *, char *);
+ VALID,
+ INVALID,
+ NOT_FOUND
+} LOCAL_AUTH_VALID;
struct authinfo {
void (*ChallengeFunc) ();
@@ -34,14 +32,10 @@ struct authinfo {
int retry;
int id;
};
-extern struct authinfo AuthPapInfo;
-extern struct authinfo AuthChapInfo;
-extern void SendPapChallenge(int);
-extern void SendChapChallenge(int);
+extern LOCAL_AUTH_VALID LocalAuthValidate(char *, char *, char *);
extern void StopAuthTimer(struct authinfo *);
extern void StartAuthChallenge(struct authinfo *);
extern void LocalAuthInit(void);
extern int AuthValidate(char *, char *, char *);
-
-#endif
+extern char *AuthGetSecret(char *, char *, int, int);
OpenPOWER on IntegriCloud