]>
Commit | Line | Data |
---|---|---|
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/negotiate/User.h" | |
92f59a05 | 12 | #include "auth/UserNameCache.h" |
aa110616 AJ |
13 | #include "Debug.h" |
14 | ||
d4806c91 | 15 | Auth::Negotiate::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 | ||
21 | Auth::Negotiate::User::~User() | |
22 | { | |
23 | debugs(29, 5, HERE << "doing nothing to clear Negotiate scheme data for '" << this << "'"); | |
24 | } | |
25 | ||
26 | int32_t | |
27 | Auth::Negotiate::User::ttl() const | |
28 | { | |
29 | return -1; // Negotiate cannot be cached. | |
30 | } | |
f53969cc | 31 | |
92f59a05 FC |
32 | CbcPointer<Auth::UserNameCache> |
33 | Auth::Negotiate::User::Cache() | |
34 | { | |
c2eec79f | 35 | static CbcPointer<Auth::UserNameCache> p(new Auth::UserNameCache("negotiate")); |
92f59a05 FC |
36 | return p; |
37 | } |