]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/UserRequest.h
1 #ifndef _SQUID_SRC_AUTH_NTLM_USERREQUEST_H
2 #define _SQUID_SRC_AUTH_NTLM_USERREQUEST_H
4 #include "auth/UserRequest.h"
5 #include "auth/ntlm/auth_ntlm.h"
11 class helper_stateful_server
;
18 class UserRequest
: public Auth::UserRequest
22 MEMPROXY_CLASS(Auth::Ntlm::UserRequest
);
25 virtual ~UserRequest();
26 virtual int authenticated() const;
27 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, http_hdr_type type
);
28 virtual Auth::Direction
module_direction();
29 virtual void module_start(AUTHCB
*, void *);
31 virtual const char * connLastHeader();
33 /* we need to store the helper server between requests */
34 helper_stateful_server
*authserver
;
35 virtual void releaseAuthServer(); ///< Release authserver NTLM helpers properly when finished or abandoning.
37 /* our current blob to pass to the client */
40 /* our current blob to pass to the server */
43 /* currently waiting for helper response */
44 unsigned char waiting
;
46 /* need access to the request flags to mess around on pconn failure */
50 static HLPCB HandleReply
;
56 MEMPROXY_CLASS_INLINE(Auth::Ntlm::UserRequest
);
58 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */