]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/digest/UserRequest.h
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
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.
9 #ifndef _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
10 #define _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
12 #if HAVE_AUTH_MODULE_DIGEST
14 #include "auth/UserRequest.h"
26 * The UserRequest structure is what follows the http_request around
28 class UserRequest
: public Auth::UserRequest
30 MEMPROXY_CLASS(Auth::Digest::UserRequest
);
34 virtual ~UserRequest();
36 virtual int authenticated() const;
37 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, Http::HdrType type
);
38 virtual Direction
module_direction();
39 virtual void addAuthenticationInfoHeader(HttpReply
* rep
, int accel
);
41 virtual void addAuthenticationInfoTrailer(HttpReply
* rep
, int accel
);
44 virtual void startHelperLookup(HttpRequest
*request
, AccessLogEntry::Pointer
&al
, AUTHCB
*, void *);
45 virtual const char *credentialsStr();
47 char *noncehex
; /* "dcd98b7102dd2f0e8b11d0f600bfb0c093" */
48 char *cnonce
; /* "0a4f113b" */
49 char *realm
; /* = "testrealm@host.com" */
50 char *pszPass
; /* = "Circle Of Life" */
51 char *algorithm
; /* = "md5" */
52 char nc
[9]; /* = "00000001" */
53 char *pszMethod
; /* = "GET" */
54 char *qop
; /* = "auth" */
55 char *uri
; /* = "/dir/index.html" */
60 bool invalid_password
;
63 digest_nonce_h
*nonce
;
66 static HLPCB HandleReply
;
72 #endif /* HAVE_AUTH_MODULE_DIGEST */
73 #endif /* _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H */