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