]> git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/negotiate/UserRequest.h
merge from SslServerCertValidator r12332
[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 onConnectionClose(ConnStateData *);
30 virtual void module_start(AUTHCB *, void *);
31
32 virtual void addAuthenticationInfoHeader(HttpReply * rep, int accel);
33
34 virtual const char * connLastHeader();
35
36 /* we need to store the helper server between requests */
37 helper_stateful_server *authserver;
38 void releaseAuthServer(void); ///< Release the authserver helper server properly.
39
40 /* what connection is this associated with */
41 /* ConnStateData * conn;*/
42
43 /* our current blob to pass to the client */
44 char *server_blob;
45 /* our current blob to pass to the server */
46 char *client_blob;
47
48 /* currently waiting for helper response */
49 unsigned char waiting;
50
51 /* need access to the request flags to mess around on pconn failure */
52 HttpRequest *request;
53
54 private:
55 static HLPCB HandleReply;
56 };
57
58 } // namespace Negotiate
59 } // namespace Auth
60
61 MEMPROXY_CLASS_INLINE(Auth::Negotiate::UserRequest);
62
63 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */