- /* Create the big type-3 message binary blob:
- "NTLMSSP%c"
- "\x03%c%c%c" type-3, 32 bits
-
- "%c%c%c%c" LanManager length + allocated space
- "%c%c" LanManager offset
- "%c%c" 2 zeroes
-
- "%c%c" NT-response length
- "%c%c" NT-response allocated space
- "%c%c" NT-response offset
- "%c%c" 2 zeroes
-
- "%c%c" domain length
- "%c%c" domain allocated space
- "%c%c" domain name offset
- "%c%c" 2 zeroes
-
- "%c%c" user length
- "%c%c" user allocated space
- "%c%c" user offset
- "%c%c" 2 zeroes
-
- "%c%c" host length
- "%c%c" host allocated space
- "%c%c" host offset
- "%c%c%c%c%c%c" 6 zeroes
-
- "\xff\xff" message length
- "%c%c" 2 zeroes
-
- "\x01\x82" flags
- "%c%c" 2 zeroes */
-
- size = snprintf(ntlmbuf, sizeof(ntlmbuf),
- "NTLMSSP%c\x03%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c\xff\xff%c%c\x01\x82%c%c",
- 0, /* zero termination */
- 0,0,0, /* type-3 long, the 24 upper bits */
-
- SHORTPAIR(0x18), /* LanManager response length, twice */
- SHORTPAIR(0x18),
- SHORTPAIR(lmrespoff),
- 0x0, 0x0,
+ /* Create the big type-3 message binary blob */
+
+ size = snprintf (ntlmbuf, sizeof(ntlmbuf),
+ "NTLMSSP%c"
+ "\x03%c%c%c" /* type-3, 32 bits */
+
+ "%c%c%c%c" /* LanManager length + allocated space */
+ "%c%c" /* LanManager offset */
+ "%c%c" /* 2 zeroes */
+
+ "%c%c" /* NT-response length */
+ "%c%c" /* NT-response allocated space */
+ "%c%c" /* NT-response offset */
+ "%c%c" /* 2 zeroes */
+
+ "%c%c" /* domain length */
+ "%c%c" /* domain allocated space */
+ "%c%c" /* domain name offset */
+ "%c%c" /* 2 zeroes */
+
+ "%c%c" /* user length */
+ "%c%c" /* user allocated space */
+ "%c%c" /* user offset */
+ "%c%c" /* 2 zeroes */
+
+ "%c%c" /* host length */
+ "%c%c" /* host allocated space */
+ "%c%c" /* host offset */
+ "%c%c%c%c%c%c" /* 6 zeroes */