fixes bug 228062 "NTLM authentication fails with mod_ntlm, mod_ntlm reports 'missing/corrupt NTLM header'" r+sr=bryner a=dbaron

This commit is contained in:
darin%meer.net 2003-12-12 02:58:42 +00:00
parent 6bf7a8743d
commit cbcce6aa7e

View File

@ -442,10 +442,10 @@ GenerateType1Msg(void **outBuf, PRUint32 *outLen)
//
// 16 : supplied domain security buffer (empty)
cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);
cursor = WriteSecBuf(cursor, 0, 0);
// 24 : supplied workstation security buffer (empty)
cursor = WriteSecBuf(cursor, 0, NTLM_TYPE1_HEADER_LEN);
cursor = WriteSecBuf(cursor, 0, 0);
return NS_OK;
}
@ -685,8 +685,7 @@ GenerateType3Msg(const nsString &domain,
memcpy((PRUint8 *) *outBuf + offset, hostPtr, hostLen);
// 52 : session key sec buf (not used)
offset += (hostLen + LM_RESP_LEN + NTLM_RESP_LEN);
cursor = WriteSecBuf(cursor, 0, offset);
cursor = WriteSecBuf(cursor, 0, 0);
// 60 : negotiated flags
cursor = WriteDWORD(cursor, msg.flags & NTLM_TYPE1_FLAGS);