$NetBSD: patch-bg,v 1.1.1.1 1999/10/08 04:34:43 dbj Exp $ --- pppd/chap.h Fri Nov 6 22:55:38 1998 +++ pppd/chap.h Thu Jun 24 13:06:30 1999 @@ -46,11 +46,13 @@ #define MD5_SIGNATURE_SIZE 16 /* 16 bytes in a MD5 message digest */ #define CHAP_MICROSOFT 0x80 /* use Microsoft-compatible alg. */ #define MS_CHAP_RESPONSE_LEN 49 /* Response length for MS-CHAP */ +#define CHAP_MICROSOFT_V2 0x81 /* use MS-CHAP v2 */ #define CHAP_CHALLENGE 1 #define CHAP_RESPONSE 2 #define CHAP_SUCCESS 3 #define CHAP_FAILURE 4 +#define CHAP_SUCCESS_R 13 /* Send response, not text message */ /* * Challenge lengths (for challenges we send) and other limits. @@ -117,6 +119,9 @@ void ChapAuthWithPeer __P((int, char *, int)); void ChapAuthPeer __P((int, char *, int)); +void ChapGenChallenge __P((chap_state *)); + +int reqchap(char **); extern struct protent chap_protent;