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