AclIdent.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_IDENT_ACLIDENT_H
10 #define SQUID_IDENT_ACLIDENT_H
11 
12 #if USE_IDENT
13 
14 #include "acl/Checklist.h"
15 
18 {
19 
20 public:
21  static IdentLookup *Instance();
22  virtual void checkForAsync(ACLChecklist *)const;
23 
24 private:
26  static void LookupDone(const char *ident, void *data);
27 };
28 
29 #include "acl/Acl.h"
30 #include "acl/Data.h"
31 
33 class ACLIdent : public ACL
34 {
36 
37 public:
38  ACLIdent(ACLData<char const *> *newData, char const *);
39  ACLIdent (ACLIdent const &old);
40  ACLIdent & operator= (ACLIdent const &rhs);
41  ~ACLIdent();
42 
43  /* ACL API */
44  virtual char const *typeString() const;
45  virtual void parse();
46  virtual bool isProxyAuth() const {return true;}
47  virtual void parseFlags();
48  virtual int match(ACLChecklist *checklist);
49  virtual SBufList dump() const;
50  virtual bool empty () const;
51  virtual ACL *clone()const;
52 
53 private:
55  char const *type_;
56 };
57 
58 #endif /* USE_IDENT */
59 #endif /* SQUID_IDENT_ACLIDENT_H */
60 
static void LookupDone(const char *ident, void *data)
Definition: AclIdent.cc:127
MEMPROXY_CLASS(ACLIdent)
ACLIdent(ACLData< char const * > *newData, char const *)
Definition: AclIdent.cc:30
virtual void checkForAsync(ACLChecklist *) const
Definition: AclIdent.cc:116
virtual char const * typeString() const
Definition: AclIdent.cc:44
Definition: Acl.h:39
virtual int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: AclIdent.cc:67
static IdentLookup * Instance()
Definition: AclIdent.cc:110
void const char HLPCB void * data
Definition: stub_helper.cc:16
~ACLIdent()
Definition: AclIdent.cc:25
std::list< SBuf > SBufList
Definition: forward.h:26
virtual ACL * clone() const
Definition: AclIdent.cc:102
virtual void parse()
parses node represenation in squid.conf; dies on failures
Definition: AclIdent.cc:56
virtual bool isProxyAuth() const
Definition: AclIdent.h:46
ACLIdent & operator=(ACLIdent const &rhs)
Definition: AclIdent.cc:36
virtual SBufList dump() const
Definition: AclIdent.cc:90
char const * type_
Definition: AclIdent.h:55
ACLData< char const * > * data
Definition: AclIdent.h:54
static IdentLookup instance_
Definition: AclIdent.h:25
virtual void parseFlags()
configures ACL options, throwing on configuration errors
Definition: AclIdent.cc:50
virtual bool empty() const
Definition: AclIdent.cc:96

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors