* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: chap.h,v 1.6 1996/07/01 01:12:21 paulus Exp $
+ * $Id: chap.h,v 1.9 2002/01/22 16:02:58 dfs Exp $
*/
#ifndef __CHAP_INCLUDE__
/*
* Challenge lengths (for challenges we send) and other limits.
*/
-#define MIN_CHALLENGE_LENGTH 32
-#define MAX_CHALLENGE_LENGTH 64
-#define MAX_RESPONSE_LENGTH 16 /* sufficient for MD5 */
+#define MIN_CHALLENGE_LENGTH 16
+#define MAX_CHALLENGE_LENGTH 24
+#define MAX_RESPONSE_LENGTH 64 /* sufficient for MD5 or MS-CHAP */
/*
* Each interface is described by a chap structure.
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.