]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/digest/User.h
Merged from trunk 13172.
[thirdparty/squid.git] / src / auth / digest / User.h
1 #ifndef _SQUID_AUTH_DIGEST_USER_H
2 #define _SQUID_AUTH_DIGEST_USER_H
3
4 #include "auth/User.h"
5
6 namespace Auth
7 {
8 namespace Digest
9 {
10
11 /** User credentials for the Digest authentication protocol */
12 class User : public Auth::User
13 {
14 public:
15 MEMPROXY_CLASS(Auth::Digest::User);
16
17 User(Auth::Config *, const char *requestRealm);
18 ~User();
19 int authenticated() const;
20
21 virtual int32_t ttl() const;
22
23 HASH HA1;
24 int HA1created;
25
26 /* what nonces have been allocated to this user */
27 dlink_list nonces;
28 };
29
30 MEMPROXY_CLASS_INLINE(Auth::Digest::User);
31
32 } // namespace Digest
33 } // namespace Auth
34
35 #endif /* _SQUID_AUTH_DIGEST_USER_H */