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