]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Remove Auth::Digest::PurgeCredentialsCache
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 31 Aug 2015 15:59:52 +0000 (17:59 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 31 Aug 2015 15:59:52 +0000 (17:59 +0200)
src/auth/digest/Scheme.cc
src/auth/digest/Scheme.h

index c3cc69ef73c906ba3cc886338830546daca11eac..880710d498f2ac8ad03f7b9c6da331f4342c7bb3 100644 (file)
@@ -37,7 +37,6 @@ Auth::Digest::Scheme::shutdownCleanup()
     if (_instance == NULL)
         return;
 
-    PurgeCredentialsCache();
     authenticateDigestNonceShutdown();
 
     _instance = NULL;
@@ -50,22 +49,3 @@ Auth::Digest::Scheme::createConfig()
     Auth::Digest::Config *digestCfg = new Auth::Digest::Config;
     return dynamic_cast<Auth::Config*>(digestCfg);
 }
-
-void
-Auth::Digest::Scheme::PurgeCredentialsCache(void)
-{
-    AuthUserHashPointer *usernamehash;
-
-    debugs(29, 2, HERE << "Erasing Digest authentication credentials from username cache.");
-    hash_first(proxy_auth_username_cache);
-
-    while ((usernamehash = static_cast<AuthUserHashPointer *>(hash_next(proxy_auth_username_cache)) )) {
-        Auth::User::Pointer auth_user = usernamehash->user();
-
-        if (strcmp(auth_user->config->type(), "digest") == 0) {
-            hash_remove_link(proxy_auth_username_cache, static_cast<hash_link*>(usernamehash));
-            delete usernamehash;
-        }
-    }
-}
-
index f7c9937549db03d03bcaff7a28b24b6b7edb1a46..713236a3ed88eaba7681a2132cdfd1b12701577f 100644 (file)
@@ -38,12 +38,6 @@ public:
 private:
     static Auth::Scheme::Pointer _instance;
 
-    /**
-     * Remove all cached user credentials from circulation.
-     * Intended for use during shutdown procedure.
-     * After calling this all newly received credentials must be re-authenticated.
-     */
-    static void PurgeCredentialsCache(void);
 };
 
 } // namespace Digest