#include "squid.h"
#include "auth/basic/Config.h"
#include "auth/basic/User.h"
+#include "auth/UserNameCache.h"
#include "Debug.h"
#include "SquidConfig.h"
#include "SquidTime.h"
}
}
+CbcPointer<Auth::UserNameCache>
+Auth::Basic::User::Cache()
+{
+ static Auth::UserNameCache cache("basic");
+ static CbcPointer<Auth::UserNameCache> p(&cache);
+ return p;
+}
+
void updateCached(User *from);
virtual int32_t ttl() const;
+ // userKey ->Auth::User::Pointer cache
+ static CbcPointer<Auth::UserNameCache> Cache();
+
char *passwd;
QueueNode *queue;
#include "squid.h"
#include "auth/digest/Config.h"
#include "auth/digest/User.h"
+#include "auth/UserNameCache.h"
#include "Debug.h"
#include "dlink.h"
#include "SquidConfig.h"
return nonce;
}
+CbcPointer<Auth::UserNameCache>
+Auth::Digest::User::Cache()
+{
+ static Auth::UserNameCache cache("digest");
+ static CbcPointer<Auth::UserNameCache> p(&cache);
+ return p;
+}
virtual int32_t ttl() const;
+ static CbcPointer<Auth::UserNameCache> Cache();
+
HASH HA1;
int HA1created;
#include "squid.h"
#include "auth/Config.h"
#include "auth/ntlm/User.h"
+#include "auth/UserNameCache.h"
#include "Debug.h"
Auth::Ntlm::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
return -1; // NTLM credentials cannot be cached.
}
+CbcPointer<Auth::UserNameCache>
+Auth::Ntlm::User::Cache()
+{
+ static Auth::UserNameCache cache("ntlm");
+ static CbcPointer<Auth::UserNameCache> p(&cache);
+ return p;
+}
virtual int32_t ttl() const;
+ static CbcPointer<Auth::UserNameCache> Cache();
+
dlink_list proxy_auth_list;
};