#include <AclProxyAuth.h>

Inheritance diagram for ACLProxyAuth:
Collaboration diagram for ACLProxyAuth:

Public Member Functions

 ~ACLProxyAuth () override
 
 ACLProxyAuth (ACLData< char const * > *, char const *)
 
char const * typeString () const override
 
void parse () override
 parses node representation in squid.conf; dies on failures More...
 
bool isProxyAuth () const override
 
int match (ACLChecklist *checklist) override
 Matches the actual data in checklist against this ACL. More...
 
SBufList dump () const override
 
bool valid () const override
 
bool empty () const override
 
bool requiresRequest () const override
 whether our (i.e. shallow) match() requires checklist to have a request More...
 
int matchForCache (ACLChecklist *checklist) override
 
void * operator new (size_t)
 
void operator delete (void *)
 
void context (const char *name, const char *configuration)
 sets user-specified ACL name and squid.conf context More...
 
bool matches (ACLChecklist *checklist) const
 
void parseFlags ()
 configures ACL options, throwing on configuration errors More...
 
int cacheMatchAcl (dlink_list *cache, ACLChecklist *)
 
virtual void prepareForUse ()
 
SBufList dumpOptions ()
 

Static Public Member Functions

static void ParseAclLine (ConfigParser &parser, ACL **head)
 
static void Initialize ()
 
static ACLFindByName (const char *name)
 

Public Attributes

char name [ACL_NAME_SZ]
 
char * cfgline
 
ACLnext
 
bool registered
 added to the global list of ACLs via aclRegister() More...
 

Private Member Functions

 MEMPROXY_CLASS (ACLProxyAuth)
 
const Acl::OptionslineOptions () override
 
int matchProxyAuth (ACLChecklist *)
 
virtual bool requiresAle () const
 whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry More...
 
virtual bool requiresReply () const
 whether our (i.e. shallow) match() requires checklist to have a reply More...
 
virtual const Acl::Optionsoptions ()
 

Private Attributes

ACLData< char const * > * data
 
char const * type_
 

Detailed Description

Definition at line 30 of file AclProxyAuth.h.

Constructor & Destructor Documentation

◆ ~ACLProxyAuth()

ACLProxyAuth::~ACLProxyAuth ( )
override

Definition at line 24 of file AclProxyAuth.cc.

References data.

◆ ACLProxyAuth()

ACLProxyAuth::ACLProxyAuth ( ACLData< char const * > *  newData,
char const *  theType 
)

Definition at line 29 of file AclProxyAuth.cc.

Member Function Documentation

◆ cacheMatchAcl()

◆ context()

void ACL::context ( const char *  name,
const char *  configuration 
)
inherited

◆ dump()

SBufList ACLProxyAuth::dump ( ) const
overridevirtual

Implements ACL.

Definition at line 78 of file AclProxyAuth.cc.

References data, and ACLData< M >::dump().

◆ dumpOptions()

SBufList ACL::dumpOptions ( )
inherited
Returns
approximate options configuration

Definition at line 326 of file Acl.cc.

References SBufStream::buf(), SBuf::isEmpty(), and ACL::options().

Referenced by dump_acl().

◆ empty()

bool ACLProxyAuth::empty ( ) const
overridevirtual

Implements ACL.

Definition at line 84 of file AclProxyAuth.cc.

References data, and ACLData< M >::empty().

◆ FindByName()

ACL * ACL::FindByName ( const char *  name)
staticinherited

◆ Initialize()

void ACL::Initialize ( )
staticinherited

Definition at line 438 of file Acl.cc.

References SquidConfig::aclList, Config, debugs, ACL::next, and ACL::prepareForUse().

Referenced by serverConnectionsOpen().

◆ isProxyAuth()

bool ACLProxyAuth::isProxyAuth ( ) const
inlineoverridevirtual

Reimplemented from ACL.

Definition at line 41 of file AclProxyAuth.h.

◆ lineOptions()

const Acl::Options & ACLProxyAuth::lineOptions ( )
overrideprivatevirtual
Returns
(linked) "line" Options supported by this ACL
See also
ACL::options()

Reimplemented from ACL.

Definition at line 41 of file AclProxyAuth.cc.

References data, and ACLData< M >::lineOptions().

◆ match()

int ACLProxyAuth::match ( ACLChecklist checklist)
overridevirtual

◆ matches()

bool ACL::matches ( ACLChecklist checklist) const
inherited

Orchestrates matching checklist against the ACL using match(), after checking preconditions and while providing debugging.

Returns
true if and only if there was a successful match. Updates the checklist state on match, async, and failure.

Definition at line 146 of file Acl.cc.

References AclMatchedName, ACLChecklist::asyncInProgress(), DBG_IMPORTANT, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), ACL::match(), ACL::name, ACL::requiresAle(), ACL::requiresReply(), ACL::requiresRequest(), and ACLChecklist::verifyAle().

Referenced by ACLChecklist::matchAndFinish(), and ACLChecklist::matchChild().

◆ matchForCache()

int ACLProxyAuth::matchForCache ( ACLChecklist checklist)
overridevirtual

◆ matchProxyAuth()

◆ MEMPROXY_CLASS()

ACLProxyAuth::MEMPROXY_CLASS ( ACLProxyAuth  )
private

◆ operator delete()

void ACL::operator delete ( void *  )
inherited

Definition at line 112 of file Acl.cc.

References fatal().

◆ operator new()

void * ACL::operator new ( size_t  )
inherited

Definition at line 105 of file Acl.cc.

References fatal().

◆ options()

virtual const Acl::Options & ACL::options ( )
inlineprivatevirtualinherited
Returns
(linked) 'global' Options supported by this ACL

Reimplemented in Acl::DestinationDomainCheck, ACLDestinationIP, Acl::AnnotationCheck, Acl::ServerNameCheck, and ACLMaxUserIP.

Definition at line 105 of file Acl.h.

References Acl::NoOptions().

Referenced by ACL::dumpOptions(), and ACL::parseFlags().

◆ parse()

void ACLProxyAuth::parse ( )
overridevirtual

Implements ACL.

Definition at line 47 of file AclProxyAuth.cc.

References data, and ACLData< M >::parse().

◆ ParseAclLine()

◆ parseFlags()

void ACL::parseFlags ( )
inherited

Definition at line 315 of file Acl.cc.

References ACL::lineOptions(), ACL::options(), and Acl::ParseFlags().

◆ prepareForUse()

◆ requiresAle()

bool ACL::requiresAle ( ) const
privatevirtualinherited

Reimplemented in ACLExternal.

Definition at line 409 of file Acl.cc.

Referenced by ACL::matches().

◆ requiresReply()

bool ACL::requiresReply ( ) const
privatevirtualinherited

Reimplemented in Acl::HttpRepHeaderCheck, ACLHTTPStatus, and Acl::ReplyHeaderCheck< header >.

Definition at line 415 of file Acl.cc.

Referenced by ACL::matches().

◆ requiresRequest()

bool ACLProxyAuth::requiresRequest ( ) const
inlineoverridevirtual

Reimplemented from ACL.

Definition at line 46 of file AclProxyAuth.h.

◆ typeString()

char const * ACLProxyAuth::typeString ( ) const
overridevirtual

Implements ACL.

Definition at line 35 of file AclProxyAuth.cc.

References type_.

◆ valid()

bool ACLProxyAuth::valid ( ) const
overridevirtual

Reimplemented from ACL.

Definition at line 90 of file AclProxyAuth.cc.

References authenticateActiveSchemeCount(), authenticateSchemeCount(), DBG_CRITICAL, and debugs.

Member Data Documentation

◆ cfgline

char* ACL::cfgline
inherited

Definition at line 88 of file Acl.h.

Referenced by ACL::~ACL(), ACL::context(), and Acl::AllOf::parse().

◆ data

ACLData<char const *>* ACLProxyAuth::data
private

Definition at line 54 of file AclProxyAuth.h.

Referenced by ~ACLProxyAuth(), dump(), empty(), lineOptions(), matchForCache(), and parse().

◆ name

◆ next

ACL* ACL::next
inherited

Definition at line 89 of file Acl.h.

Referenced by dump_acl(), ACL::FindByName(), and ACL::Initialize().

◆ registered

bool ACL::registered
inherited

Definition at line 90 of file Acl.h.

Referenced by aclDeregister(), aclDestroyAcls(), and aclRegister().

◆ type_

char const* ACLProxyAuth::type_
private

Definition at line 55 of file AclProxyAuth.h.

Referenced by typeString().


The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors