AclProxyAuth.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
21public:
22 static ProxyAuthLookup *Instance();
23 virtual void checkForAsync(ACLChecklist *) const;
24
25private:
27 static void LookupDone(void *data);
28};
29
30class ACLProxyAuth : public ACL
31{
33
34public:
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
49private:
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 int match(ACLChecklist *checklist)
Matches the actual data in checklist against this ACL.
Definition: AclProxyAuth.cc:53
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
int matchProxyAuth(ACLChecklist *)
virtual char const * typeString() const
Definition: AclProxyAuth.cc:35
virtual SBufList dump() const
Definition: AclProxyAuth.cc:78
virtual void parse()
parses node representation in squid.conf; dies on failures
Definition: AclProxyAuth.cc:47
ACLProxyAuth(ACLData< char const * > *, char const *)
Definition: AclProxyAuth.cc:29
MEMPROXY_CLASS(ACLProxyAuth)
virtual const Acl::Options & lineOptions()
Definition: AclProxyAuth.cc:41
ACLData< char const * > * data
Definition: AclProxyAuth.h:54
char const * type_
Definition: AclProxyAuth.h:55
virtual bool isProxyAuth() const
Definition: AclProxyAuth.h:41
virtual int matchForCache(ACLChecklist *checklist)
virtual bool valid() const
Definition: AclProxyAuth.cc:90
Definition: Acl.h:40
static ProxyAuthLookup * Instance()
virtual void checkForAsync(ACLChecklist *) const
static void LookupDone(void *data)
static ProxyAuthLookup instance_
Definition: AclProxyAuth.h:26
std::vector< const Option * > Options
Definition: Options.h:214
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors