X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Fchap_ms.h;h=e673f8aa24f9730efebc7368bbd9163412442a10;hb=c062322f9e8757b85a3c2281a3190d8af14bcd9b;hp=2d7c7e918b5af77f85f85f1855992017b3578d1d;hpb=e79f90482eb6f90c3f1fe7732258756d2ea0277f;p=ppp.git diff --git a/pppd/chap_ms.h b/pppd/chap_ms.h index 2d7c7e9..e673f8a 100644 --- a/pppd/chap_ms.h +++ b/pppd/chap_ms.h @@ -1,5 +1,5 @@ /* - * chap.h - Challenge Handshake Authentication Protocol definitions. + * chap_ms.h - Challenge Handshake Authentication Protocol definitions. * * Copyright (c) 1995 Eric Rosenquist, Strata Software Limited. * http://www.strataware.com/ @@ -19,12 +19,25 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: chap_ms.h,v 1.1 1996/05/28 00:42:31 paulus Exp $ + * $Id: chap_ms.h,v 1.3 2002/03/01 14:39:18 dfs Exp $ */ #ifndef __CHAPMS_INCLUDE__ -#define MAX_NT_PASSWORD 256 /* Maximum number of (Unicode) chars in an NT password */ +#define MD4_SIGNATURE_SIZE 16 /* 16 bytes in a MD4 message digest */ +#define MAX_NT_PASSWORD 256 /* Max (Unicode) chars in an NT pass */ + +#define MS_CHAP_RESPONSE_LEN 49 /* Response length for MS-CHAP */ + +/* + * Use MS_CHAP_RESPONSE_LEN, rather than sizeof(MS_ChapResponse), + * in case this struct gets padded. + */ +typedef struct { + u_char LANManResp[24]; + u_char NTResp[24]; + u_char UseNT; /* If 1, ignore the LANMan response field */ +} MS_ChapResponse; void ChapMS __P((chap_state *, char *, int, char *, int));