From e42b5f40496e727459812898b74cee3c9bb07454 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Wed, 20 Dec 2006 00:47:32 +0000 Subject: [PATCH] sent lm hashes, needed for NTLM2 session git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19467 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/ntlm/ntlm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/ntlm/ntlm.c b/lib/ntlm/ntlm.c index 4e13889da..14d697052 100644 --- a/lib/ntlm/ntlm.c +++ b/lib/ntlm/ntlm.c @@ -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; } - +