]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/negotiate/User.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / auth / negotiate / User.h
index 91ae262710804057505094ad7ea1f642e73fad7a..7c49dee8e2953ba3169e59f6acb2550484ce9ad4 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -9,12 +9,14 @@
 #ifndef _SQUID_AUTH_NEGOTIATE_USER_H
 #define _SQUID_AUTH_NEGOTIATE_USER_H
 
+#if HAVE_AUTH_MODULE_NEGOTIATE
+
 #include "auth/User.h"
 
 namespace Auth
 {
 
-class Config;
+class SchemeConfig;
 
 namespace Negotiate
 {
@@ -25,12 +27,12 @@ class User : public Auth::User
     MEMPROXY_CLASS(Auth::Negotiate::User);
 
 public:
-    User(Auth::Config *, const char *requestRealm);
-    ~User();
-    virtual int32_t ttl() const;
+    User(Auth::SchemeConfig *, const char *requestRealm);
+    virtual ~User();
+    virtual int32_t ttl() const override;
 
     /* Auth::User API */
-    static CbcPointer<Auth::UserNameCache> Cache();
+    static CbcPointer<Auth::CredentialsCache> Cache();
     virtual void addToNameCache() override;
 
     dlink_list proxy_auth_list;
@@ -39,5 +41,6 @@ public:
 } // namespace Negotiate
 } // namespace Auth
 
+#endif /* HAVE_AUTH_MODULE_NEGOTIATE */
 #endif /* _SQUID_AUTH_NEGOTIATE_USER_H */