AclProxyAuth.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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 
38  /* ACL API */
39  virtual char const *typeString() const;
40  virtual void parse();
41  virtual bool isProxyAuth() const {return true;}
42  virtual int match(ACLChecklist *checklist);
43  virtual SBufList dump() const;
44  virtual bool valid() const;
45  virtual bool empty() const;
46  virtual bool requiresRequest() const {return true;}
47  virtual int matchForCache(ACLChecklist *checklist);
48 
49 private:
50  /* ACL API */
51  virtual const Acl::Options &lineOptions();
52 
55  char const *type_;
56 };
57 
58 #endif /* USE_AUTH */
59 #endif /* SQUID_ACLPROXYAUTH_H */
60 
virtual char const * typeString() const
Definition: AclProxyAuth.cc:35
virtual void checkForAsync(ACLChecklist *) const
std::vector< const Option * > Options
Definition: Options.h:214
std::list< SBuf > SBufList
Definition: forward.h:22
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: AclProxyAuth.cc:53
char const * type_
Definition: AclProxyAuth.h:55
virtual const Acl::Options & lineOptions()
Definition: AclProxyAuth.cc:41
int matchProxyAuth(ACLChecklist *)
virtual bool isProxyAuth() const
Definition: AclProxyAuth.h:41
ACLData< char const * > * data
Definition: AclProxyAuth.h:54
MEMPROXY_CLASS(ACLProxyAuth)
virtual void parse()
parses node representation in squid.conf; dies on failures
Definition: AclProxyAuth.cc:47
virtual bool valid() const
Definition: AclProxyAuth.cc:90
static ProxyAuthLookup instance_
Definition: AclProxyAuth.h:26
virtual SBufList dump() const
Definition: AclProxyAuth.cc:78
Definition: Acl.h:40
virtual bool empty() const
Definition: AclProxyAuth.cc:84
virtual bool requiresRequest() const
whether our (i.e. shallow) match() requires checklist to have a request
Definition: AclProxyAuth.h:46
static void LookupDone(void *data)
ACLProxyAuth(ACLData< char const * > *, char const *)
Definition: AclProxyAuth.cc:29
static ProxyAuthLookup * Instance()
virtual int matchForCache(ACLChecklist *checklist)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors