From: Amos Jeffries Date: Sat, 6 Jun 2009 11:09:41 +0000 (+1200) Subject: Author: Joao Alves Neto X-Git-Tag: SQUID_3_0_STABLE16~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aefdb3b63e154c0776cd90b2ad10e9987725a76;p=thirdparty%2Fsquid.git Author: Joao Alves Neto Make fakeauth handle NTLMv2 better NTLMv2 requires challenge flags to be a mirror of those received. --- diff --git a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c index 18c75fc3bd..23bf008e16 100644 --- a/helpers/ntlm_auth/fakeauth/fakeauth_auth.c +++ b/helpers/ntlm_auth/fakeauth/fakeauth_auth.c @@ -159,6 +159,7 @@ ntlmMakeChallenge(struct ntlm_challenge *chal, int32_t flags) (NEGOTIATE_UNICODE & flags ? NEGOTIATE_UNICODE : NEGOTIATE_ASCII) ); chal->hdr.type = htole32(NTLM_CHALLENGE); + chal->flags = flags; chal->unknown[6] = htole16(0x003a); d = (char *) chal + 48;