зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
cec3fabf1d
Коммит
aa4638806c
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче