]>
Commit | Line | Data |
---|---|---|
bbc27441 AJ |
1 | /* |
2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors | |
3 | * | |
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. | |
7 | */ | |
8 | ||
928f3421 AJ |
9 | #ifndef _SQUID_SRC_AUTH_NTLM_USERREQUEST_H |
10 | #define _SQUID_SRC_AUTH_NTLM_USERREQUEST_H | |
11 | ||
602d9612 | 12 | #include "auth/UserRequest.h" |
12daeef6 | 13 | #include "helper/forward.h" |
928f3421 AJ |
14 | |
15 | class ConnStateData; | |
16 | class HttpReply; | |
17 | class HttpRequest; | |
928f3421 | 18 | |
c7baff40 AJ |
19 | namespace Auth |
20 | { | |
21 | namespace Ntlm | |
22 | { | |
23 | ||
24 | class UserRequest : public Auth::UserRequest | |
928f3421 | 25 | { |
c7baff40 | 26 | MEMPROXY_CLASS(Auth::Ntlm::UserRequest); |
928f3421 | 27 | |
741c2986 | 28 | public: |
c7baff40 AJ |
29 | UserRequest(); |
30 | virtual ~UserRequest(); | |
928f3421 AJ |
31 | virtual int authenticated() const; |
32 | virtual void authenticate(HttpRequest * request, ConnStateData * conn, http_hdr_type type); | |
51a3dd58 | 33 | virtual Auth::Direction module_direction(); |
30c3f584 | 34 | virtual void startHelperLookup(HttpRequest *req, AccessLogEntry::Pointer &al, AUTHCB *, void *); |
d4806c91 | 35 | virtual const char *credentialsStr(); |
928f3421 AJ |
36 | |
37 | virtual const char * connLastHeader(); | |
38 | ||
39 | /* we need to store the helper server between requests */ | |
40 | helper_stateful_server *authserver; | |
cc1e110a | 41 | virtual void releaseAuthServer(); ///< Release authserver NTLM helpers properly when finished or abandoning. |
928f3421 | 42 | |
928f3421 AJ |
43 | /* our current blob to pass to the client */ |
44 | char *server_blob; | |
45 | ||
46 | /* our current blob to pass to the server */ | |
47 | char *client_blob; | |
48 | ||
49 | /* currently waiting for helper response */ | |
50 | unsigned char waiting; | |
51 | ||
52 | /* need access to the request flags to mess around on pconn failure */ | |
53 | HttpRequest *request; | |
54 | ||
55 | private: | |
e166785a | 56 | static HLPCB HandleReply; |
928f3421 AJ |
57 | }; |
58 | ||
c7baff40 AJ |
59 | } // namespace Ntlm |
60 | } // namespace Auth | |
61 | ||
928f3421 | 62 | #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */ |