AclProxyAuth.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 &);
38  ACLProxyAuth &operator =(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:
54  int matchProxyAuth(ACLChecklist *);
56  char const *type_;
57 };
58 
59 #endif /* USE_AUTH */
60 #endif /* SQUID_ACLPROXYAUTH_H */
61 
#define MEMPROXY_CLASS(CLASS)
Definition: Acl.h:39
static struct node * parse(FILE *fp)
Definition: parse.c:995
virtual bool isProxyAuth() const
Definition: AclProxyAuth.h:43
ACLData< char const * > * data
Definition: AclProxyAuth.h:55
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
void const char HLPCB void * data
Definition: stub_helper.cc:16
char const * type_
Definition: AclProxyAuth.h:56
static ProxyAuthLookup * Instance()
std::list< SBuf > SBufList
Definition: forward.h:22
virtual bool requiresRequest() const
whether our (i.e. shallow) match() requires checklist to have a request
Definition: AclProxyAuth.h:49
bool match(const char *fn, const REList *list)
Definition: purge.cc:398
static void LookupDone(void *data)
virtual void checkForAsync(ACLChecklist *) const
static ProxyAuthLookup instance_
Definition: AclProxyAuth.h:26

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors