]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/negotiate/UserRequest.h
1 #ifndef _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
2 #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
4 #include "auth/UserRequest.h"
10 class helper_stateful_server
;
17 /// \ingroup AuthNegotiateAPI
18 class UserRequest
: public Auth::UserRequest
22 MEMPROXY_CLASS(Auth::Negotiate::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 *);
31 virtual void addAuthenticationInfoHeader(HttpReply
* rep
, int accel
);
33 virtual const char * connLastHeader();
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.
39 /* what connection is this associated with */
40 /* ConnStateData * conn;*/
42 /* our current blob to pass to the client */
44 /* our current blob to pass to the server */
47 /* currently waiting for helper response */
48 unsigned char waiting
;
50 /* need access to the request flags to mess around on pconn failure */
54 static HLPCB HandleReply
;
57 } // namespace Negotiate
60 MEMPROXY_CLASS_INLINE(Auth::Negotiate::UserRequest
);
62 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */