]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/digest/UserRequest.h
1 #ifndef _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
2 #define _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H
4 #include "auth/digest/auth_digest.h"
5 #include "auth/UserRequest.h"
18 * The UserRequest structure is what follows the http_request around
20 class UserRequest
: public Auth::UserRequest
24 MEMPROXY_CLASS(Auth::Digest::UserRequest
);
27 virtual ~UserRequest();
29 virtual int authenticated() const;
30 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, http_hdr_type type
);
31 virtual Direction
module_direction();
32 virtual void addAuthenticationInfoHeader(HttpReply
* rep
, int accel
);
34 virtual void addAuthenticationInfoTrailer(HttpReply
* rep
, int accel
);
37 virtual void module_start(HttpRequest
*request
, AccessLogEntry::Pointer
&al
, AUTHCB
*, void *);
38 virtual const char *credentialsStr();
40 char *nonceb64
; /* "dcd98b7102dd2f0e8b11d0f600bfb0c093" */
41 char *cnonce
; /* "0a4f113b" */
42 char *realm
; /* = "testrealm@host.com" */
43 char *pszPass
; /* = "Circle Of Life" */
44 char *algorithm
; /* = "md5" */
45 char nc
[9]; /* = "00000001" */
46 char *pszMethod
; /* = "GET" */
47 char *qop
; /* = "auth" */
48 char *uri
; /* = "/dir/index.html" */
53 bool invalid_password
;
56 digest_nonce_h
*nonce
;
59 static HLPCB HandleReply
;
65 MEMPROXY_CLASS_INLINE(Auth::Digest::UserRequest
);
67 #endif /* _SQUID_SRC_AUTH_DIGEST_USERREQUEST_H */