From: Francesco Chemolli Date: Thu, 3 Sep 2015 17:20:41 +0000 (+0200) Subject: Remove Auth::Config::findUserInCache X-Git-Tag: SQUID_4_0_1~21^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7401af29c75b831de1758849bf719398d60c8ae;p=thirdparty%2Fsquid.git Remove Auth::Config::findUserInCache --- diff --git a/src/auth/Config.cc b/src/auth/Config.cc index e597830be0..e4fbdbcaea 100644 --- a/src/auth/Config.cc +++ b/src/auth/Config.cc @@ -156,23 +156,3 @@ Auth::Config::done() keyExtras = NULL; keyExtrasLine.clean(); } - -Auth::User::Pointer -Auth::Config::findUserInCache(const char *nameKey, Auth::Type authType) -{ - AuthUserHashPointer *usernamehash; - debugs(29, 9, "Looking for user '" << nameKey << "'"); - - if (nameKey && (usernamehash = static_cast(hash_lookup(proxy_auth_username_cache, nameKey)))) { - while (usernamehash) { - if ((usernamehash->user()->auth_type == authType) && - !strcmp(nameKey, (char const *)usernamehash->key)) - return usernamehash->user(); - - usernamehash = static_cast(usernamehash->next); - } - } - - return NULL; -} - diff --git a/src/auth/Config.h b/src/auth/Config.h index ba8e42cbef..4dc720b9f4 100644 --- a/src/auth/Config.h +++ b/src/auth/Config.h @@ -108,9 +108,6 @@ public: /** add headers as needed when challenging for auth */ virtual void fixHeader(UserRequest::Pointer, HttpReply *, Http::HdrType, HttpRequest *) = 0; - /// Find any existing user credentials in the authentication cache by name and type. - virtual Auth::User::Pointer findUserInCache(const char *nameKey, Auth::Type type); - /** prepare to handle requests */ virtual void init(Config *) = 0;