diff src/ntlm.c @ 11829:4669e7461968

[gaim-migrate @ 14120] Regular comment changes. I'm sorry to force a big recompilation. It had to be done at some point, though, and I've tried to do this all in one day. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 26 Oct 2005 00:34:26 +0000
parents 03cd74ca2562
children 31a3a9af1494
line wrap: on
line diff
--- a/src/ntlm.c	Wed Oct 26 00:33:21 2005 +0000
+++ b/src/ntlm.c	Wed Oct 26 00:34:26 2005 +0000
@@ -31,80 +31,84 @@
 #include <string.h>
 
 struct type1_message {
-	guint8    protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0' */
-	guint8    type;            /* 0x01 */
-	guint8    zero1[3];
+	guint8  protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0' */
+	guint8  type;            /* 0x01 */
+	guint8  zero1[3];
 	short   flags;           /* 0xb203 */
-	guint8    zero2[2];
+	guint8  zero2[2];
 
-	short   dom_len1;         /* domain string length */
-	short   dom_len2;         /* domain string length */
+	short   dom_len1;        /* domain string length */
+	short   dom_len2;        /* domain string length */
 	short   dom_off;         /* domain string offset */
-	guint8    zero3[2];
+	guint8  zero3[2];
 
-	short   host_len1;        /* host string length */
-	short   host_len2;        /* host string length */
+	short   host_len1;       /* host string length */
+	short   host_len2;       /* host string length */
 	short   host_off;        /* host string offset (always 0x20) */
-	guint8    zero4[2];
+	guint8  zero4[2];
 
-/*	guint8    host[*];         // host string (ASCII)
-	guint8    dom[*];          // domain string (ASCII) */
+#if 0
+	guint8  host[*];         /* host string (ASCII) */
+	guint8  dom[*];          /* domain string (ASCII) */
+#endif
 };
 
 struct type2_message {
-	guint8    protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0'*/
-	guint8    type;            /* 0x02 */
-	guint8    zero1[7];
+	guint8  protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0'*/
+	guint8  type;            /* 0x02 */
+	guint8  zero1[7];
 	short   msg_len;         /* 0x28 */
-	guint8    zero2[2];
+	guint8  zero2[2];
 	short   flags;           /* 0x8201 */
-	guint8    zero3[2];
+	guint8  zero3[2];
 
-	guint8    nonce[8];        /* nonce */
-	guint8    zero[8];
+	guint8  nonce[8];        /* nonce */
+	guint8  zero[8];
 };
 
 struct type3_message {
-	guint8    protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0'*/
-	guint8    type;            /* 0x03 */
-	guint8    zero1[3];
+	guint8  protocol[8];     /* 'N', 'T', 'L', 'M', 'S', 'S', 'P', '\0'*/
+	guint8  type;            /* 0x03 */
+	guint8  zero1[3];
 
-	short   lm_resp_len1;     /* LanManager response length (always 0x18)*/
-	short   lm_resp_len2;     /* LanManager response length (always 0x18)*/
+	short   lm_resp_len1;    /* LanManager response length (always 0x18)*/
+	short   lm_resp_len2;    /* LanManager response length (always 0x18)*/
 	short   lm_resp_off;     /* LanManager response offset */
-	guint8    zero2[2];
+	guint8  zero2[2];
 
-	short   nt_resp_len1;     /* NT response length (always 0x18) */
-	short   nt_resp_len2;     /* NT response length (always 0x18) */
+	short   nt_resp_len1;    /* NT response length (always 0x18) */
+	short   nt_resp_len2;    /* NT response length (always 0x18) */
 	short   nt_resp_off;     /* NT response offset */
-	guint8    zero3[2];
+	guint8  zero3[2];
 
-	short   dom_len1;         /* domain string length */
-	short   dom_len2;         /* domain string length */
+	short   dom_len1;        /* domain string length */
+	short   dom_len2;        /* domain string length */
 	short   dom_off;         /* domain string offset (always 0x40) */
-	guint8    zero4[2];
+	guint8  zero4[2];
 
-	short   user_len1;        /* username string length */
-	short   user_len2;        /* username string length */
+	short   user_len1;       /* username string length */
+	short   user_len2;       /* username string length */
 	short   user_off;        /* username string offset */
-	guint8    zero5[2];
+	guint8  zero5[2];
 
-	short   host_len1;        /* host string length */
-	short   host_len2;        /* host string length */
+	short   host_len1;       /* host string length */
+	short   host_len2;       /* host string length */
 	short   host_off;        /* host string offset */
-	guint8    zero6[6];
+	guint8  zero6[6];
 
 	short   msg_len;         /* message length */
-	guint8    zero7[2];
+	guint8  zero7[2];
 
 	short   flags;           /* 0x8201 */
-	guint8    zero8[2];
+	guint8  zero8[2];
 
-/*	guint8    dom[*];          // domain string (unicode UTF-16LE)
-	guint8    user[*];         // username string (unicode UTF-16LE)
-	guint8    host[*];         // host string (unicode UTF-16LE)
-	guint8    lm_resp[*];      // LanManager response
-	guint8    nt_resp[*];      // NT response*/
+#if 0
+	guint8  dom[*];          /* domain string (unicode UTF-16LE) */
+	guint8  user[*];         /* username string (unicode UTF-16LE) */
+	guint8  host[*];         /* host string (unicode UTF-16LE) */
+	guint8  lm_resp[*];      /* LanManager response */
+	guint8  nt_resp[*];      /* NT response */
+#endif
 };
 
 gchar *gaim_ntlm_gen_type1(gchar *hostname, gchar *domain) {