]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/chap_ms.h
Large patch from Frank Cusack <fcusack@fcusack.com> to add proper
[ppp.git] / pppd / chap_ms.h
index 1f0ea2b4e234e68a5a2df426821bb10668470fd4..e673f8aa24f9730efebc7368bbd9163412442a10 100644 (file)
@@ -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/
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * $Id: chap_ms.h,v 1.2 1997/11/27 06:08:10 paulus Exp $
+ * $Id: chap_ms.h,v 1.3 2002/03/01 14:39:18 dfs Exp $
  */
 
 #ifndef __CHAPMS_INCLUDE__
 
 #define MD4_SIGNATURE_SIZE     16      /* 16 bytes in a MD4 message digest */
-#define MAX_NT_PASSWORD        256     /* Maximum number of (Unicode) chars in an NT password */
+#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));