]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/negotiate/UserRequest.h
Merged from trunk r12948.
[thirdparty/squid.git] / src / auth / negotiate / UserRequest.h
1 #ifndef _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
2 #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
3
4 #include "auth/UserRequest.h"
5 #include "MemPool.h"
6
7 class ConnStateData;
8 class HttpReply;
9 class HttpRequest;
10 class helper_stateful_server;
11
12 namespace Auth
13 {
14 namespace Negotiate
15 {
16
17 /// \ingroup AuthNegotiateAPI
18 class UserRequest : public Auth::UserRequest
19 {
20
21 public:
22 MEMPROXY_CLASS(Auth::Negotiate::UserRequest);
23
24 UserRequest();
25 virtual ~UserRequest();
26 virtual int authenticated() const;
27 virtual void authenticate(HttpRequest * request, ConnStateData * conn, http_hdr_type type);
28 virtual Direction module_direction();
29 virtual void module_start(AUTHCB *, void *);
30
31 virtual void addAuthenticationInfoHeader(HttpReply * rep, int accel);
32
33 virtual const char * connLastHeader();
34
35 /* we need to store the helper server between requests */
36 helper_stateful_server *authserver;
37 void releaseAuthServer(void); ///< Release the authserver helper server properly.
38
39 /* what connection is this associated with */
40 /* ConnStateData * conn;*/
41
42 /* our current blob to pass to the client */
43 char *server_blob;
44 /* our current blob to pass to the server */
45 char *client_blob;
46
47 /* currently waiting for helper response */
48 unsigned char waiting;
49
50 /* need access to the request flags to mess around on pconn failure */
51 HttpRequest *request;
52
53 private:
54 static HLPCB HandleReply;
55 };
56
57 } // namespace Negotiate
58 } // namespace Auth
59
60 MEMPROXY_CLASS_INLINE(Auth::Negotiate::UserRequest);
61
62 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */