xref: /titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/chap_ms.h (revision e0724c534a46ca4754330bc022bf1e2a68f5bb93)
1 /*
2  * chap_ms.h - Microsoft CHAP definitions.
3  *
4  * Copyright (c) 2000 by Sun Microsystems, Inc.
5  * All rights reserved.
6  *
7  * Copyright (c) 1995 Eric Rosenquist, Strata Software Limited.
8  * http://www.strataware.com/
9  *
10  * All rights reserved.
11  *
12  * Redistribution and use in source and binary forms are permitted
13  * provided that the above copyright notice and this paragraph are
14  * duplicated in all such forms and that any documentation,
15  * advertising materials, and other materials related to such
16  * distribution and use acknowledge that the software was developed
17  * by Eric Rosenquist.  The name of the author may not be used to
18  * endorse or promote products derived from this software without
19  * specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
22  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
23  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24  *
25  * $Id: chap_ms.h,v 1.2 1997/11/27 06:08:10 paulus Exp $
26  */
27 
28 #pragma ident	"%Z%%M%	%I%	%E% SMI"
29 
30 #ifndef __CHAPMS_INCLUDE__
31 
32 #define MD4_SIGNATURE_SIZE	16	/* 16 bytes in a MD4 message digest */
33 #define MAX_NT_PASSWORD	256	/* Maximum number of (Unicode) chars in an NT password */
34 
35 void ChapMS __P((chap_state *, u_char *, int, char *, int));
36 void ChapMSv2 __P((chap_state *, u_char *, int, char *, int));
37 int ChapMSValidate __P((chap_state *cstate, u_char *response, int response_len,
38     char *secret, int secret_len));
39 int ChapMSv2Validate __P((chap_state *cstate, char *rhostname,
40     u_char *response, int response_len, char *secret, int secret_len));
41 
42 #define __CHAPMS_INCLUDE__
43 #endif /* __CHAPMS_INCLUDE__ */
44