]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: de-duplicate auth_param realm configuration
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 31 May 2014 15:51:14 +0000 (08:51 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 31 May 2014 15:51:14 +0000 (08:51 -0700)
commitec980001a1ef8e8c98b57557835c10a223433942
treeb549803e387c3d2d8ecfc64be62deb1ae34a2fa4
parent0309fc406832ea1103fb4172cadab9f6d6abe8cb
Cleanup: de-duplicate auth_param realm configuration

Move realm parse and config dump logics to Auth::Config base object.
This de-duplicates Basic, Digest (and future schemes ie Bearer) config
processing code.  Also makes realm available to NTLM and Negotiate
schemes, although at present it remains unused by those schemes.

Also, convert the realm parameter string to an SBuf. Removing the need
for some memory maintenance code.
src/auth/Config.cc
src/auth/Config.h
src/auth/basic/auth_basic.cc
src/auth/basic/auth_basic.h
src/auth/digest/auth_digest.cc
src/auth/digest/auth_digest.h