]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/ntlm/UserRequest.h
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef _SQUID_SRC_AUTH_NTLM_USERREQUEST_H
10 #define _SQUID_SRC_AUTH_NTLM_USERREQUEST_H
12 #include "auth/ntlm/auth_ntlm.h"
13 #include "auth/UserRequest.h"
19 class helper_stateful_server
;
26 class UserRequest
: public Auth::UserRequest
30 MEMPROXY_CLASS(Auth::Ntlm::UserRequest
);
33 virtual ~UserRequest();
34 virtual int authenticated() const;
35 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, http_hdr_type type
);
36 virtual Auth::Direction
module_direction();
37 virtual void startHelperLookup(HttpRequest
*req
, AccessLogEntry::Pointer
&al
, AUTHCB
*, void *);
38 virtual const char *credentialsStr();
40 virtual const char * connLastHeader();
42 /* we need to store the helper server between requests */
43 helper_stateful_server
*authserver
;
44 virtual void releaseAuthServer(); ///< Release authserver NTLM helpers properly when finished or abandoning.
46 /* our current blob to pass to the client */
49 /* our current blob to pass to the server */
52 /* currently waiting for helper response */
53 unsigned char waiting
;
55 /* need access to the request flags to mess around on pconn failure */
59 static HLPCB HandleReply
;
65 MEMPROXY_CLASS_INLINE(Auth::Ntlm::UserRequest
);
67 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */