From: Francesco Chemolli Date: Thu, 3 Sep 2015 17:01:50 +0000 (+0200) Subject: Convert Digest to new username cache X-Git-Tag: SQUID_4_0_1~21^2~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0593bae564450b9aa33838697b4c09127c9f0e37;p=thirdparty%2Fsquid.git Convert Digest to new username cache --- diff --git a/src/auth/digest/Config.cc b/src/auth/digest/Config.cc index 011cfca6ae..90a6ff9eb8 100644 --- a/src/auth/digest/Config.cc +++ b/src/auth/digest/Config.cc @@ -19,6 +19,7 @@ #include "auth/digest/UserRequest.h" #include "auth/Gadgets.h" #include "auth/State.h" +#include "auth/UserNameCache.h" #include "base/LookupTable.h" #include "base64.h" #include "cache_cf.h" @@ -1042,7 +1043,7 @@ Auth::Digest::Config::decode(char const *proxy_auth, const char *aRequestRealm) Auth::User::Pointer auth_user; SBuf key = Auth::User::BuildUserKey(username, aRequestRealm); - if (key.isEmpty() || (auth_user = findUserInCache(key.c_str(), Auth::AUTH_DIGEST)) == NULL) { + if (key.isEmpty() || !(auth_user = Auth::Digest::User::Cache()->lookup(key))) { /* the user doesn't exist in the username cache yet */ debugs(29, 9, "Creating new digest user '" << username << "'"); digest_user = new Auth::Digest::User(this, aRequestRealm);