source: squid-ssl/trunk/fuentes/src/auth/digest/User.h @ 5496

Last change on this file since 5496 was 5495, checked in by Juanma, 2 years ago

Initial release

File size: 964 bytes
Line 
1/*
2 * Copyright (C) 1996-2015 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
9#ifndef _SQUID_AUTH_DIGEST_USER_H
10#define _SQUID_AUTH_DIGEST_USER_H
11
12#include "auth/User.h"
13
14namespace Auth
15{
16namespace Digest
17{
18
19/** User credentials for the Digest authentication protocol */
20class User : public Auth::User
21{
22public:
23    MEMPROXY_CLASS(Auth::Digest::User);
24
25    User(Auth::Config *, const char *requestRealm);
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;
36
37    digest_nonce_h * currentNonce();
38};
39
40MEMPROXY_CLASS_INLINE(Auth::Digest::User);
41
42} // namespace Digest
43} // namespace Auth
44
45#endif /* _SQUID_AUTH_DIGEST_USER_H */
46
Note: See TracBrowser for help on using the repository browser.