]> git.ipfire.org Git - thirdparty/squid.git/commit - src/auth/digest/UserRequest.cc
Auth lookup state cbdata upgrade
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Jun 2011 12:25:12 +0000 (06:25 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 13 Jun 2011 12:25:12 +0000 (06:25 -0600)
commit1c756645b487dd32065aba99699b302f66513bc1
treed95c2417b8f88935e8d859dc5eb7225878b186d7
parent8306968f65820311f87d03744966d86591042223
Auth lookup state cbdata upgrade

The authenticators utilize a "statedata" structure to store and pass
the callback and Auth::UserRequest an auth lookup is about.

This patch converts the structure from a CBDATA_GLOBAL_TYPE struct to a
CBDATA_CLASS2 and adds a parameterized constructor for it.

The result is that all the code using it no longer has to explicitly
manage fields assignments and cbdata referencing. Simply new the object
when submitting to the helper system and delete once its handler has
been called.
src/auth/State.cc
src/auth/State.h
src/auth/basic/auth_basic.cc
src/auth/digest/UserRequest.cc
src/auth/digest/auth_digest.cc
src/auth/negotiate/UserRequest.cc
src/auth/negotiate/auth_negotiate.cc
src/auth/ntlm/UserRequest.cc
src/auth/ntlm/auth_ntlm.cc