sent lm hashes, needed for NTLM2 session

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19467 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-12-20 00:47:32 +00:00
parent fadaad6712
commit e42b5f4049

View File

@@ -610,10 +610,9 @@ heim_ntlm_encode_type3(struct ntlm_type3 *type3, struct ntlm_buf *data)
if (type3->flags & NTLM_NEG_UNICODE)
ucs2 = 1;
/* refuse to send lm ???, matching code below */
lm.offset = base;
lm.length = 0;
lm.allocated = 0;
lm.length = type3->lm.length;
lm.allocated = type3->lm.length;
ntlm.offset = lm.offset + lm.allocated;
ntlm.length = type3->ntlm.length;
@@ -659,9 +658,7 @@ heim_ntlm_encode_type3(struct ntlm_type3 *type3, struct ntlm_buf *data)
CHECK(krb5_store_uint32(out, 0), 0); /* os1 */
#endif
/* refuse to send lm ???, matching code above
CHECK(put_buf(out, &type3->lm), 0);
*/
CHECK(put_buf(out, &type3->ntlm), 0);
CHECK(put_string(out, ucs2, type3->targetname), 0);
CHECK(put_string(out, ucs2, type3->username), 0);
@@ -817,4 +814,4 @@ out:
return EINVAL;
}