UserRequest.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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 
9 #ifndef _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
10 #define _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H
11 
12 #if HAVE_AUTH_MODULE_NEGOTIATE
13 
14 #include "auth/UserRequest.h"
15 #include "helper/forward.h"
16 #include "helper/ReservationId.h"
17 
18 class ConnStateData;
19 class HttpReply;
20 class HttpRequest;
21 
22 namespace Auth
23 {
24 namespace Negotiate
25 {
26 
27 class UserRequest : public Auth::UserRequest
28 {
29  MEMPROXY_CLASS(Auth::Negotiate::UserRequest);
30 
31 public:
32  UserRequest();
33  virtual ~UserRequest();
34  virtual int authenticated() const;
36  virtual Direction module_direction();
37  virtual void startHelperLookup(HttpRequest *request, AccessLogEntry::Pointer &al, AUTHCB *, void *);
38  virtual const char *credentialsStr();
39 
40  virtual const char * connLastHeader();
41 
42  void releaseAuthServer(void);
43 
44  /* what connection is this associated with */
45  /* ConnStateData * conn;*/
46 
47  /* our current blob to pass to the client */
48  char *server_blob;
49  /* our current blob to pass to the server */
50  char *client_blob;
51 
52  /* currently waiting for helper response */
53  unsigned char waiting;
54 
55  /* need access to the request flags to mess around on pconn failure */
57 
60  Helper::ReservationId reservationId;
61 private:
62  static HLPCB HandleReply;
63 };
64 
65 } // namespace Negotiate
66 } // namespace Auth
67 
68 #endif /* HAVE_AUTH_MODULE_NEGOTIATE */
69 #endif /* _SQUID_SRC_AUTH_NEGOTIATE_USERREQUEST_H */
70 
#define MEMPROXY_CLASS(CLASS)
int conn
the current server connection FD
Definition: Transport.cc:26
void AUTHCB(void *)
Definition: UserRequest.h:57
static void authenticate(int socket_fd, const char *username, const char *passwd)
a (temporary) lock on a (stateful) helper channel
Definition: ReservationId.h:18
int type
Definition: errorpage.cc:152
void HLPCB(void *, const Helper::Reply &)
Definition: forward.h:27
HTTP Authentication.
Definition: Config.h:19
Direction
Definition: UserRequest.h:64
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors