From 0593bae564450b9aa33838697b4c09127c9f0e37 Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Thu, 3 Sep 2015 19:01:50 +0200 Subject: [PATCH] Convert Digest to new username cache --- src/auth/digest/Config.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.3