]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/ntlm/User.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / auth / ntlm / User.h
index f160d116a5735ebcc4b6c850a7c225253fcc55d3..9c886cbd901a97218325de69eaf9e885ed3f5d05 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -9,13 +9,13 @@
 #ifndef _SQUID_AUTH_NTLM_USER_H
 #define _SQUID_AUTH_NTLM_USER_H
 
+#if HAVE_AUTH_MODULE_NTLM
+
 #include "auth/User.h"
 
 namespace Auth
 {
 
-class Config;
-
 namespace Ntlm
 {
 
@@ -25,10 +25,13 @@ class User : public Auth::User
     MEMPROXY_CLASS(Auth::Ntlm::User);
 
 public:
-    User(Auth::Config *, const char *requestRealm);
-    ~User();
+    User(Auth::SchemeConfig *, const char *requestRealm);
+    virtual ~User();
+    virtual int32_t ttl() const override;
 
-    virtual int32_t ttl() const;
+    /* Auth::User API */
+    static CbcPointer<Auth::CredentialsCache> Cache();
+    virtual void addToNameCache() override;
 
     dlink_list proxy_auth_list;
 };
@@ -36,5 +39,6 @@ public:
 } // namespace Ntlm
 } // namespace Auth
 
+#endif /* HAVE_AUTH_MODULE_NTLM */
 #endif /* _SQUID_AUTH_NTLM_USER_H */