]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Sourceformat
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 4 Sep 2015 13:38:54 +0000 (15:38 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 4 Sep 2015 13:38:54 +0000 (15:38 +0200)
src/auth/Config.cc
src/auth/Gadgets.cc
src/auth/UserNameCache.cc
src/auth/UserNameCache.h
src/auth/basic/User.cc
src/auth/digest/Scheme.cc
src/auth/digest/User.cc
src/auth/negotiate/User.cc
src/auth/ntlm/User.cc
src/auth/ntlm/User.h
src/auth/ntlm/UserRequest.cc

index e4fbdbcaea5f6baac784865bdc260ea00ab242e2..7c966c14291f8f48ca7a08daef207d3ffce1cdb9 100644 (file)
@@ -156,3 +156,4 @@ Auth::Config::done()
     keyExtras = NULL;
     keyExtrasLine.clean();
 }
+
index 8a91934af872753df4119086a7852bc9c3610bf1..a157721c0417e12e21be724af83aa1a407e6d7d4 100644 (file)
@@ -131,3 +131,4 @@ authenticateCachedUsersList()
                std::back_inserter(rv), aucp_compare);
     return rv;
 }
+
index 870be26da6453f638731b07f2e98d7a1a76143d6..8fde52f702dfe4d3acd7c3085c2743a5e9063701 100644 (file)
@@ -9,8 +9,8 @@
 /* DEBUG: section 29    Authenticator */
 
 #include "squid.h"
-#include "auth/UserNameCache.h"
 #include "acl/Gadgets.h"
+#include "auth/UserNameCache.h"
 #include "Debug.h"
 #include "event.h"
 #include "SquidConfig.h"
@@ -26,7 +26,7 @@ UserNameCache::UserNameCache(const char *name) :
     debugs(29, 5, "initializing " << name << " username cache");
     cacheCleanupEventName.append(name);
     eventAdd(cacheCleanupEventName.c_str(), &UserNameCache::Cleanup,
-                    this, ::Config.authenticateGCInterval, 1);
+             this, ::Config.authenticateGCInterval, 1);
     RegisterRunner(this);
 }
 
@@ -54,16 +54,16 @@ UserNameCache::Cleanup(void *data)
     const auto end = self->store_.end();
     for (auto i = self->store_.begin(); i != end;) {
         debugs(29, 6, "considering " << i->first << "(expires in " <<
-                        (expirationTime - i->second->expiretime) << " sec)");
+               (expirationTime - i->second->expiretime) << " sec)");
         if (i->second->expiretime <= expirationTime) {
             debugs(29, 6, "evicting " << i->first);
             i = self->store_.erase(i); //erase advances i
         } else {
-               ++i;
+            ++i;
         }
     }
     eventAdd(self->cacheCleanupEventName.c_str(), &UserNameCache::Cleanup,
-                    self, ::Config.authenticateGCInterval, 1);
+             self, ::Config.authenticateGCInterval, 1);
 }
 
 void
@@ -80,13 +80,13 @@ UserNameCache::sortedUsersList() const
 {
     std::vector<Auth::User::Pointer> rv(size(), nullptr);
     std::transform(store_.begin(), store_.end(), rv.begin(),
-        [](StoreType::value_type v) { return v.second; }
-    );
+    [](StoreType::value_type v) { return v.second; }
+                  );
     std::sort(rv.begin(), rv.end(),
-        [](const Auth::User::Pointer &lhs, const Auth::User::Pointer &rhs) {
-            return strcmp(lhs->username(), rhs->username()) < 0;
-        }
-    );
+    [](const Auth::User::Pointer &lhs, const Auth::User::Pointer &rhs) {
+        return strcmp(lhs->username(), rhs->username()) < 0;
+    }
+             );
     return rv;
 }
 
@@ -108,3 +108,4 @@ UserNameCache::syncConfig()
 }
 
 } /* namespace Auth */
+
index bf31866e9c6410aa38dc34a081d310b19b62c168..57e0a57e65f544b6733e67adf5a66536f064ff34 100644 (file)
@@ -9,10 +9,10 @@
 #ifndef SQUID_SRC_AUTH_UERNAMECACHE_H
 #define SQUID_SRC_AUTH_UERNAMECACHE_H
 
-#include "SBufAlgos.h"
 #include "auth/User.h"
-#include "cbdata.h"
 #include "base/RunnersRegistry.h"
+#include "cbdata.h"
+#include "SBufAlgos.h"
 
 #include <unordered_map>
 
@@ -80,3 +80,4 @@ private:
 } /* namespace Auth */
 
 #endif /* SQUID_SRC_AUTH_UERNAMECACHE_H */
+
index 11bffb10cf831b304c07aa51e5ffcc1b6ce40041..c8be6cf9b045600bfa627f4df1475850f95ad7d6 100644 (file)
@@ -92,3 +92,4 @@ Auth::Basic::User::addToNameCache()
 {
     Cache()->insert(this);
 }
+
index 880710d498f2ac8ad03f7b9c6da331f4342c7bb3..dbc1c22341a6621c5f8fbc17427c0ea94241e998 100644 (file)
@@ -49,3 +49,4 @@ Auth::Digest::Scheme::createConfig()
     Auth::Digest::Config *digestCfg = new Auth::Digest::Config;
     return dynamic_cast<Auth::Config*>(digestCfg);
 }
+
index 21d833b49cc7883f4d24b412f1054d4858a2223d..a6d85a26df5a9610a95cb7589b00a9b07064e8b8 100644 (file)
@@ -85,3 +85,4 @@ Auth::Digest::User::addToNameCache()
 {
     Cache()->insert(this);
 }
+
index 2c9af467f7f9ab793a15b1fcb7459b313ffbfe45..d97489c77273a6a28e90f224c32fbd5f8d4b618f 100644 (file)
@@ -40,3 +40,4 @@ Auth::Negotiate::User::addToNameCache()
 {
     Cache()->insert(this);
 }
+
index de3ef4cf4e502159d0621a13d0c578d65c7f8b19..e1a96fbb30c28dc3992f7a365b1536dde8a69a2b 100644 (file)
@@ -40,3 +40,4 @@ Auth::Ntlm::User::addToNameCache()
 {
     Cache()->insert(this);
 }
+
index 74b4c455098b47f7fd5d47e727889ea64dfbe4a0..d845a478bb407cb06579d936ee3b7c2475d71699 100644 (file)
@@ -40,3 +40,4 @@ public:
 } // namespace Auth
 
 #endif /* _SQUID_AUTH_NTLM_USER_H */
+
index cc3b79eb4ecdda812f264df4ac7ec0d2c84da552..f223e89f657e5de8af079ef4c649b04b22643c1e 100644 (file)
@@ -11,8 +11,8 @@
 #include "auth/ntlm/Config.h"
 #include "auth/ntlm/User.h"
 #include "auth/ntlm/UserRequest.h"
-#include "auth/UserNameCache.h"
 #include "auth/State.h"
+#include "auth/UserNameCache.h"
 #include "cbdata.h"
 #include "client_side.h"
 #include "fatal.h"