]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/digest/User.h
Maintenance: bump astyle to 2.04 and quieten report
[thirdparty/squid.git] / src / auth / digest / User.h
CommitLineData
bbc27441
AJ
1/*
2 * Copyright (C) 1996-2014 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
aa110616
AJ
9#ifndef _SQUID_AUTH_DIGEST_USER_H
10#define _SQUID_AUTH_DIGEST_USER_H
11
12#include "auth/User.h"
13
14namespace Auth
de76457e 15{
aa110616
AJ
16namespace Digest
17{
18
19/** User credentials for the Digest authentication protocol */
20class User : public Auth::User
21{
aa110616
AJ
22 MEMPROXY_CLASS(Auth::Digest::User);
23
741c2986 24public:
d4806c91 25 User(Auth::Config *, const char *requestRealm);
aa110616
AJ
26 ~User();
27 int authenticated() const;
28
29 virtual int32_t ttl() const;
30
31 HASH HA1;
32 int HA1created;
33
34 /* what nonces have been allocated to this user */
35 dlink_list nonces;
572d2e31
HN
36
37 digest_nonce_h * currentNonce();
aa110616 38};
de76457e 39
aa110616
AJ
40} // namespace Digest
41} // namespace Auth
42
43#endif /* _SQUID_AUTH_DIGEST_USER_H */