]> git.ipfire.org Git - thirdparty/squid.git/commit
Remove redundant user() functions
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Dec 2009 04:15:55 +0000 (17:15 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 18 Dec 2009 04:15:55 +0000 (17:15 +1300)
commitedda124411f237a843788fd4c79176600b4c29b8
treec1670ec45c70e41bbe7a3e18758d13dae9772c44
parenta33a428a9d803640055f16e791f449dda8ea33b6
Remove redundant user() functions

The child classes of AuthUserRequest turned out to have alternative
verions of user() set and get functions. These did the same operations
but stored the AuthUser class in different locations.
This makes user() always NULL for pointers to the parent object inside
the core authentication code. Regardess of whether an AuthUser was set.

Also digest auth had a completely alternative set of functions authUser()
to do user() operations on the parent object and locking. This has been
cleaned up.
src/auth/User.cc
src/auth/UserRequest.cc
src/auth/basic/auth_basic.cc
src/auth/basic/auth_basic.h
src/auth/digest/auth_digest.cc
src/auth/digest/auth_digest.h
src/auth/negotiate/auth_negotiate.cc
src/auth/negotiate/auth_negotiate.h
src/auth/ntlm/auth_ntlm.cc
src/auth/ntlm/auth_ntlm.h