]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 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" |
638cfbc4 | 10 | #include "auth/CredentialsCache.h" |
fde785ee | 11 | #include "auth/ntlm/User.h" |
ae578099 | 12 | #include "auth/SchemeConfig.h" |
675b8408 | 13 | #include "debug/Stream.h" |
aa110616 | 14 | |
dc79fed8 | 15 | Auth::Ntlm::User::User(Auth::SchemeConfig *aConfig, const char *aRequestRealm) : |
f53969cc | 16 | Auth::User(aConfig, aRequestRealm) |
aa110616 | 17 | { |
aa110616 AJ |
18 | } |
19 | ||
20 | Auth::Ntlm::User::~User() | |
21 | { | |
bf95c10a | 22 | debugs(29, 5, "doing nothing to clear NTLM scheme data for '" << this << "'"); |
aa110616 AJ |
23 | } |
24 | ||
25 | int32_t | |
26 | Auth::Ntlm::User::ttl() const | |
27 | { | |
28 | return -1; // NTLM credentials cannot be cached. | |
29 | } | |
f53969cc | 30 | |
638cfbc4 | 31 | CbcPointer<Auth::CredentialsCache> |
e1568a40 FC |
32 | Auth::Ntlm::User::Cache() |
33 | { | |
455bb54d | 34 | static CbcPointer<Auth::CredentialsCache> p(new Auth::CredentialsCache("ntlm", "GC NTLM user credentials")); |
e1568a40 FC |
35 | return p; |
36 | } | |
283c905d FC |
37 | |
38 | void | |
39 | Auth::Ntlm::User::addToNameCache() | |
40 | { | |
97821413 | 41 | Cache()->insert(userKey(), this); |
283c905d | 42 | } |
7512e3f9 | 43 |