]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/ntlm/User.cc
Fix cbdata-related parts of UserNameCache.
[thirdparty/squid.git] / src / auth / ntlm / User.cc
CommitLineData
bbc27441 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
bbc27441
AJ
3 *
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.
7 */
8
f7f3304a 9#include "squid.h"
aa110616
AJ
10#include "auth/Config.h"
11#include "auth/ntlm/User.h"
e1568a40 12#include "auth/UserNameCache.h"
aa110616
AJ
13#include "Debug.h"
14
d4806c91 15Auth::Ntlm::User::User(Auth::Config *aConfig, const char *aRequestRealm) :
f53969cc 16 Auth::User(aConfig, aRequestRealm)
aa110616 17{
c2eec79f 18 Cache()->insert(Pointer(this));
aa110616
AJ
19}
20
21Auth::Ntlm::User::~User()
22{
23 debugs(29, 5, HERE << "doing nothing to clear NTLM scheme data for '" << this << "'");
24}
25
26int32_t
27Auth::Ntlm::User::ttl() const
28{
29 return -1; // NTLM credentials cannot be cached.
30}
f53969cc 31
e1568a40
FC
32CbcPointer<Auth::UserNameCache>
33Auth::Ntlm::User::Cache()
34{
c2eec79f 35 static CbcPointer<Auth::UserNameCache> p(new Auth::UserNameCache("basic"));
e1568a40
FC
36 return p;
37}