]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/auth/digest/User.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / auth / digest / User.h
index f823bb5256e0701821e9323b420e490c13a678ff..507677b21484a16256bec416625ebae25ff03a12 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -9,6 +9,8 @@
 #ifndef _SQUID_AUTH_DIGEST_USER_H
 #define _SQUID_AUTH_DIGEST_USER_H
 
+#if HAVE_AUTH_MODULE_DIGEST
+
 #include "auth/digest/Config.h"
 #include "auth/User.h"
 #include "rfc2617.h"
@@ -24,10 +26,10 @@ class User : public Auth::User
     MEMPROXY_CLASS(Auth::Digest::User);
 
 public:
-    User(Auth::Config *, const char *requestRealm);
-    ~User();
+    User(Auth::SchemeConfig *, const char *requestRealm);
+    virtual ~User();
     int authenticated() const;
-    virtual int32_t ttl() const;
+    virtual int32_t ttl() const override;
 
     /* Auth::User API */
     static CbcPointer<Auth::CredentialsCache> Cache();
@@ -45,5 +47,6 @@ public:
 } // namespace Digest
 } // namespace Auth
 
+#endif /* HAVE_AUTH_MODULE_DIGEST */
 #endif /* _SQUID_AUTH_DIGEST_USER_H */