]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/User.cc
d6e5c7bdc37e5e459e9e45d00cbc228b00667a50
2 * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
10 #include "auth/CredentialsCache.h"
11 #include "auth/ntlm/User.h"
12 #include "auth/SchemeConfig.h"
15 Auth::Ntlm::User::User(Auth::SchemeConfig
*aConfig
, const char *aRequestRealm
) :
16 Auth::User(aConfig
, aRequestRealm
)
20 Auth::Ntlm::User::~User()
22 debugs(29, 5, HERE
<< "doing nothing to clear NTLM scheme data for '" << this << "'");
26 Auth::Ntlm::User::ttl() const
28 return -1; // NTLM credentials cannot be cached.
31 CbcPointer
<Auth::CredentialsCache
>
32 Auth::Ntlm::User::Cache()
34 static CbcPointer
<Auth::CredentialsCache
> p(new Auth::CredentialsCache("ntlm", "GC NTLM user credentials"));
39 Auth::Ntlm::User::addToNameCache()
41 Cache()->insert(userKey(), this);