]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/User.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / auth / ntlm / User.h
1 /*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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
9 #ifndef _SQUID_AUTH_NTLM_USER_H
10 #define _SQUID_AUTH_NTLM_USER_H
11
12 #if HAVE_AUTH_MODULE_NTLM
13
14 #include "auth/User.h"
15
16 namespace Auth
17 {
18
19 namespace Ntlm
20 {
21
22 /** User credentials for the NTLM authentication protocol */
23 class User : public Auth::User
24 {
25 MEMPROXY_CLASS(Auth::Ntlm::User);
26
27 public:
28 User(Auth::SchemeConfig *, const char *requestRealm);
29 ~User() override;
30 int32_t ttl() const override;
31
32 /* Auth::User API */
33 static CbcPointer<Auth::CredentialsCache> Cache();
34 void addToNameCache() override;
35
36 dlink_list proxy_auth_list;
37 };
38
39 } // namespace Ntlm
40 } // namespace Auth
41
42 #endif /* HAVE_AUTH_MODULE_NTLM */
43 #endif /* _SQUID_AUTH_NTLM_USER_H */
44