]>
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 onConnectionClose(ConnStateData
*);
30 virtual void module_start(AUTHCB
*, void *);
32 virtual void addAuthenticationInfoHeader(HttpReply
* rep
, int accel
);
34 virtual const char * connLastHeader();
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.
40 /* what connection is this associated with */
41 /* ConnStateData * conn;*/
43 /* our current blob to pass to the client */
45 /* our current blob to pass to the server */
48 /* currently waiting for helper response */
49 unsigned char waiting
;
51 /* need access to the request flags to mess around on pconn failure */
55 static HLPSCB HandleReply
;
58 } // namespace Negotiate
61 MEMPROXY_CLASS_INLINE(Auth::Negotiate::UserRequest
);
63 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */