AclProxyAuth.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_ACLPROXYAUTH_H
10 #define SQUID_ACLPROXYAUTH_H
11 
12 #if USE_AUTH
13 
14 #include "acl/Acl.h"
15 #include "acl/Checklist.h"
16 #include "acl/Data.h"
17 
19 {
20 
21 public:
22  static ProxyAuthLookup *Instance();
23  virtual void checkForAsync(ACLChecklist *) const;
24 
25 private:
27  static void LookupDone(void *data);
28 };
29 
30 class ACLProxyAuth : public ACL
31 {
33 
34 public:
35  ~ACLProxyAuth();
36  ACLProxyAuth(ACLData<char const *> *, char const *);
37  ACLProxyAuth(ACLProxyAuth const &);
39 
40  /* ACL API */
41  virtual char const *typeString() const;
42  virtual void parse();
43  virtual bool isProxyAuth() const {return true;}
44  virtual void parseFlags();
45  virtual int match(ACLChecklist *checklist);
46  virtual SBufList dump() const;
47  virtual bool valid() const;
48  virtual bool empty() const;
49  virtual bool requiresRequest() const {return true;}
50  virtual ACL *clone() const;
51  virtual int matchForCache(ACLChecklist *checklist);
52 
53 private:
56  char const *type_;
57 };
58 
59 #endif /* USE_AUTH */
60 #endif /* SQUID_ACLPROXYAUTH_H */
61 
virtual int matchForCache(ACLChecklist *checklist)
virtual bool valid() const
ACLProxyAuth & operator=(ACLProxyAuth const &)
Definition: AclProxyAuth.cc:40
Definition: Acl.h:39
virtual bool empty() const
Definition: AclProxyAuth.cc:97
ACLData< char const * > * data
Definition: AclProxyAuth.h:55
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: AclProxyAuth.cc:66
virtual bool requiresRequest() const
whether our (i.e. shallow) match() requires checklist to have a request
Definition: AclProxyAuth.h:49
virtual bool isProxyAuth() const
Definition: AclProxyAuth.h:43
virtual void checkForAsync(ACLChecklist *) const
void const char HLPCB void * data
Definition: stub_helper.cc:16
int matchProxyAuth(ACLChecklist *)
char const * type_
Definition: AclProxyAuth.h:56
MEMPROXY_CLASS(ACLProxyAuth)
virtual void parse()
parses node represenation in squid.conf; dies on failures
Definition: AclProxyAuth.cc:60
virtual SBufList dump() const
Definition: AclProxyAuth.cc:91
static ProxyAuthLookup * Instance()
std::list< SBuf > SBufList
Definition: forward.h:26
virtual ACL * clone() const
virtual void parseFlags()
configures ACL options, throwing on configuration errors
Definition: AclProxyAuth.cc:54
static void LookupDone(void *data)
static ProxyAuthLookup instance_
Definition: AclProxyAuth.h:26
ACLProxyAuth(ACLData< char const * > *, char const *)
Definition: AclProxyAuth.cc:29
virtual char const * typeString() const
Definition: AclProxyAuth.cc:48

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors