2 * Copyright (C) 1996-2019 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_NEGOTIATE_USERREQUEST_H
10 #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
12 #if HAVE_AUTH_MODULE_NEGOTIATE
14 #include "auth/UserRequest.h"
15 #include "helper/forward.h"
16 #include "helper/ReservationId.h"
27 class UserRequest
: public Auth::UserRequest
29 MEMPROXY_CLASS(Auth::Negotiate::UserRequest
);
33 virtual ~UserRequest();
34 virtual int authenticated() const;
35 virtual void authenticate(HttpRequest
* request
, ConnStateData
* conn
, Http::HdrType type
);
36 virtual Direction
module_direction();
37 virtual void startHelperLookup(HttpRequest
*request
, AccessLogEntry::Pointer
&al
, AUTHCB
*, void *);
38 virtual const char *credentialsStr();
40 virtual const char * connLastHeader();
42 void releaseAuthServer(void); ///< Release the authserver helper server properly.
44 /* what connection is this associated with */
45 /* ConnStateData * conn;*/
47 /* 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 */
58 /// a helper-issued reservation locking the helper state between
60 Helper::ReservationId reservationId
;
62 static HLPCB HandleReply
;
65 } // namespace Negotiate
68 #endif /* HAVE_AUTH_MODULE_NEGOTIATE */
69 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */