]> git.ipfire.org Git - thirdparty/squid.git/blame - src/auth/digest/UserRequest.h
Bug 4352: compile errors in OS X 10.11
[thirdparty/squid.git] / src / auth / digest / UserRequest.h
CommitLineData
bbc27441 1/*
bde978a6 2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
bbc27441
AJ
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
928f3421
AJ
9#ifndef _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
10#define _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
11
602d9612 12#include "auth/UserRequest.h"
928f3421
AJ
13
14class ConnStateData;
15class HttpReply;
16class HttpRequest;
17
c7baff40
AJ
18namespace Auth
19{
20namespace Digest
21{
22
928f3421 23/**
c7baff40 24 * The UserRequest structure is what follows the http_request around
928f3421 25 */
c7baff40 26class UserRequest : public Auth::UserRequest
928f3421 27{
c7baff40 28 MEMPROXY_CLASS(Auth::Digest::UserRequest);
928f3421 29
741c2986 30public:
c7baff40
AJ
31 UserRequest();
32 virtual ~UserRequest();
928f3421
AJ
33
34 virtual int authenticated() const;
789217a2 35 virtual void authenticate(HttpRequest * request, ConnStateData * conn, Http::HdrType type);
c7baff40 36 virtual Direction module_direction();
7afc3bf2 37 virtual void addAuthenticationInfoHeader(HttpReply * rep, int accel);
928f3421 38#if WAITING_FOR_TE
7afc3bf2 39 virtual void addAuthenticationInfoTrailer(HttpReply * rep, int accel);
928f3421
AJ
40#endif
41
30c3f584 42 virtual void startHelperLookup(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *, void *);
d4806c91 43 virtual const char *credentialsStr();
928f3421 44
928f3421
AJ
45 char *nonceb64; /* "dcd98b7102dd2f0e8b11d0f600bfb0c093" */
46 char *cnonce; /* "0a4f113b" */
47 char *realm; /* = "testrealm@host.com" */
48 char *pszPass; /* = "Circle Of Life" */
49 char *algorithm; /* = "md5" */
50 char nc[9]; /* = "00000001" */
51 char *pszMethod; /* = "GET" */
52 char *qop; /* = "auth" */
53 char *uri; /* = "/dir/index.html" */
54 char *response;
55
56 struct {
3dd52a0b
FC
57 bool authinfo_sent;
58 bool invalid_password;
59 bool helper_queried;
928f3421
AJ
60 } flags;
61 digest_nonce_h *nonce;
62
63private:
928f3421
AJ
64 static HLPCB HandleReply;
65};
66
c7baff40
AJ
67} // namespace Digest
68} // namespace Auth
69
928f3421 70#endif /* _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H */
f53969cc 71