]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/UserRequest.cc
Unify auth schemes credential states.
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 6 May 2010 11:07:19 +0000 (23:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 6 May 2010 11:07:19 +0000 (23:07 +1200)
commitd232141d1bd04ebde4e6ef92e6f911c09bc32936
tree1eb24394783a10ef4d02b83cf58b9fa6cc1e50ff
parent92bec429b5edb92baf9c79340fd31f6359d8006d
Unify auth schemes credential states.

Each scheme was maintaining it's own fields about what the state of the
credentials was.
This allows code to determine the state of the credentials easily.
Username cache can also display the credential state of any auth type now.

Tested on Basic, not yet tested for Digest, NTLM, Negotiate.

Also: fixed error where Negotiate always reported no program configured.
17 files changed:
src/auth/AclProxyAuth.cc
src/auth/State.h
src/auth/User.cc
src/auth/User.h
src/auth/UserRequest.cc
src/auth/basic/auth_basic.cc
src/auth/basic/auth_basic.h
src/auth/basic/basicUserRequest.cc
src/auth/digest/auth_digest.cc
src/auth/digest/digestUserRequest.cc
src/auth/digest/digestUserRequest.h
src/auth/negotiate/auth_negotiate.cc
src/auth/negotiate/negotiateUserRequest.cc
src/auth/negotiate/negotiateUserRequest.h
src/auth/ntlm/auth_ntlm.cc
src/auth/ntlm/ntlmUserRequest.cc
src/auth/ntlm/ntlmUserRequest.h