--------------------- PatchSet 2580 Date: 2001/07/04 12:41:13 Author: uid30507 Branch: ntlm Tag: (none) Log: Added some extra debugging for state transitions. Members: src/auth/ntlm/auth_ntlm.c:1.1.10.14.2.19->1.1.10.14.2.20 Index: squid/src/auth/ntlm/auth_ntlm.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/auth/ntlm/auth_ntlm.c,v retrieving revision 1.1.10.14.2.19 retrieving revision 1.1.10.14.2.20 diff -u -r1.1.10.14.2.19 -r1.1.10.14.2.20 --- squid/src/auth/ntlm/auth_ntlm.c 28 Jun 2001 13:54:21 -0000 1.1.10.14.2.19 +++ squid/src/auth/ntlm/auth_ntlm.c 4 Jul 2001 12:41:13 -0000 1.1.10.14.2.20 @@ -965,6 +965,9 @@ return; } ntlm_request->auth_state = AUTHENTICATE_STATE_NEGOTIATE; +#ifdef EXTRA_DEBUG +debug (29,1) ("setting ntlm_request %x to NEGOTIATE\n", ntlm_request); +#endif ntlm_request->ntlmnegotiate = xstrndup(proxy_auth, NTLM_CHALLENGE_SZ + 5); conn->auth_type = AUTH_NTLM; conn->auth_user_request = auth_user_request; @@ -1005,6 +1008,9 @@ if (!proxy_auth_hash) { /* not in the hash table */ debug(29, 4) ("authenticateNTLMAuthenticateUser: proxy-auth cache miss.\n"); ntlm_request->auth_state = AUTHENTICATE_STATE_RESPONSE; +#ifdef EXTRA_DEBUG +debug (29,1) ("setting ntlm_request %x to RESPONSE\n", ntlm_request); +#endif /* verify with the ntlm helper */ } else { debug(29, 4) ("authenticateNTLMAuthenticateUser: ntlm proxy-auth cache hit\n"); @@ -1014,6 +1020,9 @@ auth_user = proxy_auth_hash->auth_user; auth_user_request->auth_user = auth_user; ntlm_request->auth_state = AUTHENTICATE_STATE_DONE; +#ifdef EXTRA_DEBUG +debug (29,1) ("setting ntlm_request %x to DONE\n", ntlm_request); +#endif /* we found one */ debug(29, 9) ("found matching cache entry\n"); assert(auth_user->auth_type == AUTH_NTLM); @@ -1032,6 +1041,9 @@ /* auth-challenge pair cache miss. We've just got the response */ /*add to cache and let them through */ ntlm_request->auth_state = AUTHENTICATE_STATE_DONE; +#ifdef EXTRA_DEBUG +debug (29,1) ("setting ntlm_request %x to DONE\n", ntlm_request); +#endif /* this connection is authenticated */ debug(29, 4) ("authenticated\nch %s\nauth %s\nauthuser %s\n", ntlm_request->authchallenge,