]>
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 struct helper_stateful_server
;
13 class AuthNTLMUserRequest
: public AuthUserRequest
17 MEMPROXY_CLASS(AuthNTLMUserRequest
);
19 AuthNTLMUserRequest();
20 virtual ~AuthNTLMUserRequest();
21 virtual int authenticated() const;
22 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, http_hdr_type type
);
23 virtual Auth::Direction
module_direction();
24 virtual void onConnectionClose(ConnStateData
*);
25 virtual void module_start(RH
*, void *);
27 virtual const char * connLastHeader();
29 /* we need to store the helper server between requests */
30 helper_stateful_server
*authserver
;
31 void releaseAuthServer(void); ///< Release authserver NTLM helpers properly when finished or abandoning.
33 /* what connection is this associated with */
34 // ConnStateData * conn;
36 /* our current blob to pass to the client */
39 /* our current blob to pass to the server */
42 /* currently waiting for helper response */
43 unsigned char waiting
;
45 /* need access to the request flags to mess around on pconn failure */
49 static HLPSCB HandleReply
;
52 MEMPROXY_CLASS_INLINE(AuthNTLMUserRequest
);
54 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */