]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove Auth::Config::findUserInCache
authorFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 3 Sep 2015 17:20:41 +0000 (19:20 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Thu, 3 Sep 2015 17:20:41 +0000 (19:20 +0200)
src/auth/Config.cc
src/auth/Config.h

index e597830be0866a997eb989873e7563e9d2e0e297..e4fbdbcaea5f6baac784865bdc260ea00ab242e2 100644 (file)
@@ -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<AuthUserHashPointer *>(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<AuthUserHashPointer *>(usernamehash->next);
-        }
-    }
-
-    return NULL;
-}
-
index ba8e42cbefe261b6f38c8bf4e330e9702c3a1872..4dc720b9f4d9fcf38fe931fc7eaf6a05c7eb9e54 100644 (file)
@@ -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;