X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fchap.h;h=37d166566f19b6f8614279212d59115509ea081c;hp=016cd83a9543bafb98ceee2a743f70ef2926ec9f;hb=561ca44f6fd1eb282cb5998dd5ecf8a8aa34f77a;hpb=6815640f313fe730642df94144180702d29ef8a1 diff --git a/pppd/chap.h b/pppd/chap.h index 016cd83..37d1665 100644 --- a/pppd/chap.h +++ b/pppd/chap.h @@ -30,7 +30,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap.h,v 1.7 1996/10/08 06:43:27 paulus Exp $ + * $Id: chap.h,v 1.9 2002/01/22 16:02:58 dfs Exp $ */ #ifndef __CHAP_INCLUDE__ @@ -55,8 +55,8 @@ /* * Challenge lengths (for challenges we send) and other limits. */ -#define MIN_CHALLENGE_LENGTH 32 -#define MAX_CHALLENGE_LENGTH 64 +#define MIN_CHALLENGE_LENGTH 16 +#define MAX_CHALLENGE_LENGTH 24 #define MAX_RESPONSE_LENGTH 64 /* sufficient for MD5 or MS-CHAP */ /* @@ -85,6 +85,9 @@ typedef struct chap_state { char *resp_name; /* Our name to send with response */ } chap_state; +/* We need the declaration of chap_state to use this prototype */ +extern int (*chap_auth_hook) __P((char *user, u_char *remmd, + int remmd_len, chap_state *cstate)); /* * Client (peer) states.