UserRequest.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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_NTLM_USERREQUEST_H
10 #define _SQUID_SRC_AUTH_NTLM_USERREQUEST_H
11 
12 #if HAVE_AUTH_MODULE_NTLM
13 
14 #include "auth/UserRequest.h"
15 #include "helper/forward.h"
16 
17 class ConnStateData;
18 class HttpReply;
19 class HttpRequest;
20 
21 namespace Auth
22 {
23 namespace Ntlm
24 {
25 
26 class UserRequest : public Auth::UserRequest
27 {
28  MEMPROXY_CLASS(Auth::Ntlm::UserRequest);
29 
30 public:
31  UserRequest();
32  virtual ~UserRequest();
33  virtual int authenticated() const;
35  virtual Auth::Direction module_direction();
36  virtual void startHelperLookup(HttpRequest *req, AccessLogEntry::Pointer &al, AUTHCB *, void *);
37  virtual const char *credentialsStr();
38 
39  virtual const char * connLastHeader();
40 
41  /* we need to store the helper server between requests */
42  helper_stateful_server *authserver;
43  virtual void releaseAuthServer();
44 
45  /* our current blob to pass to the client */
46  char *server_blob;
47 
48  /* our current blob to pass to the server */
49  char *client_blob;
50 
51  /* currently waiting for helper response */
52  unsigned char waiting;
53 
54  /* need access to the request flags to mess around on pconn failure */
56 
57 private:
58  static HLPCB HandleReply;
59 };
60 
61 } // namespace Ntlm
62 } // namespace Auth
63 
64 #endif /* HAVE_AUTH_MODULE_NTLM */
65 #endif /* _SQUID_SRC_AUTH_NTLM_USERREQUEST_H */
66 
#define MEMPROXY_CLASS(CLASS)
int type
Definition: errorpage.cc:79
static void authenticate(int socket_fd, const char *username, const char *passwd)
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
Direction
Definition: UserRequest.h:64
int conn
the current server connection FD
Definition: Transport.cc:26
void HLPCB(void *, const Helper::Reply &)
Definition: forward.h:27
void AUTHCB(void *)
Definition: UserRequest.h:57

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors