]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 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_NEGOTIATE_USERREQUEST_H |
10 | #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H | |
11 | ||
a0026a6c AJ |
12 | #if HAVE_AUTH_MODULE_NEGOTIATE |
13 | ||
928f3421 | 14 | #include "auth/UserRequest.h" |
12daeef6 | 15 | #include "helper/forward.h" |
928f3421 | 16 | |
928f3421 AJ |
17 | class ConnStateData; |
18 | class HttpReply; | |
19 | class HttpRequest; | |
928f3421 | 20 | |
c7baff40 AJ |
21 | namespace Auth |
22 | { | |
23 | namespace Negotiate | |
24 | { | |
25 | ||
c7baff40 | 26 | class UserRequest : public Auth::UserRequest |
928f3421 | 27 | { |
c7baff40 | 28 | MEMPROXY_CLASS(Auth::Negotiate::UserRequest); |
928f3421 | 29 | |
741c2986 | 30 | public: |
c7baff40 AJ |
31 | UserRequest(); |
32 | virtual ~UserRequest(); | |
928f3421 | 33 | virtual int authenticated() const; |
789217a2 | 34 | virtual void authenticate(HttpRequest * request, ConnStateData * conn, Http::HdrType type); |
c7baff40 | 35 | virtual Direction module_direction(); |
30c3f584 | 36 | virtual void startHelperLookup(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *, void *); |
d4806c91 | 37 | virtual const char *credentialsStr(); |
928f3421 | 38 | |
928f3421 AJ |
39 | virtual const char * connLastHeader(); |
40 | ||
41 | /* we need to store the helper server between requests */ | |
42 | helper_stateful_server *authserver; | |
43 | void releaseAuthServer(void); ///< Release the authserver helper server properly. | |
44 | ||
45 | /* what connection is this associated with */ | |
46 | /* ConnStateData * conn;*/ | |
47 | ||
928f3421 AJ |
48 | /* our current blob to pass to the client */ |
49 | char *server_blob; | |
50 | /* our current blob to pass to the server */ | |
51 | char *client_blob; | |
52 | ||
53 | /* currently waiting for helper response */ | |
54 | unsigned char waiting; | |
55 | ||
56 | /* need access to the request flags to mess around on pconn failure */ | |
57 | HttpRequest *request; | |
58 | ||
59 | private: | |
e166785a | 60 | static HLPCB HandleReply; |
928f3421 AJ |
61 | }; |
62 | ||
c7baff40 AJ |
63 | } // namespace Negotiate |
64 | } // namespace Auth | |
65 | ||
a0026a6c | 66 | #endif /* HAVE_AUTH_MODULE_NEGOTIATE */ |
928f3421 | 67 | #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */ |
f53969cc | 68 |