xref: /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/chap_ms.h (revision f37b3cbb6f67aaea5eec1c335bdc7bf432867d64)
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 #ifndef __CHAPMS_INCLUDE__
29 
30 #define MD4_SIGNATURE_SIZE	16	/* 16 bytes in a MD4 message digest */
31 #define MAX_NT_PASSWORD	256	/* Maximum number of (Unicode) chars in an NT password */
32 
33 void ChapMS __P((chap_state *, u_char *, int, char *, int));
34 void ChapMSv2 __P((chap_state *, u_char *, int, char *, int));
35 int ChapMSValidate __P((chap_state *cstate, u_char *response, int response_len,
36     char *secret, int secret_len));
37 int ChapMSv2Validate __P((chap_state *cstate, char *rhostname,
38     u_char *response, int response_len, char *secret, int secret_len));
39 
40 #define __CHAPMS_INCLUDE__
41 #endif /* __CHAPMS_INCLUDE__ */
42