#include <ExtUser.h>

Inheritance diagram for ACLExtUser:
Collaboration diagram for ACLExtUser:

Public Member Functions

 ACLExtUser (ACLData< char const *> *newData, char const *)
 
 ACLExtUser (ACLExtUser const &old)
 
ACLExtUseroperator= (ACLExtUser const &rhs)
 
 ~ACLExtUser ()
 
virtual char const * typeString () const
 
virtual void parse ()
 parses node represenation in squid.conf; dies on failures More...
 
virtual void parseFlags ()
 configures ACL options, throwing on configuration errors More...
 
virtual int match (ACLChecklist *checklist)
 Matches the actual data in checklist against this ACL. More...
 
virtual SBufList dump () const
 
virtual bool empty () const
 
virtual ACLclone () const
 
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
 
virtual const Acl::Optionsoptions ()
 
virtual bool isProxyAuth () const
 
virtual bool valid () const
 
int cacheMatchAcl (dlink_list *cache, ACLChecklist *)
 
virtual int matchForCache (ACLChecklist *checklist)
 
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 (ACLExtUser)
 

Private Attributes

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

Detailed Description

Definition at line 18 of file ExtUser.h.

Constructor & Destructor Documentation

◆ ACLExtUser() [1/2]

ACLExtUser::ACLExtUser ( ACLData< char const *> *  newData,
char const *  newType 
)

Definition at line 27 of file ExtUser.cc.

Referenced by clone().

◆ ACLExtUser() [2/2]

ACLExtUser::ACLExtUser ( ACLExtUser const &  old)

Definition at line 29 of file ExtUser.cc.

◆ ~ACLExtUser()

ACLExtUser::~ACLExtUser ( )

Definition at line 22 of file ExtUser.cc.

References data.

Member Function Documentation

◆ cacheMatchAcl()

◆ clone()

ACL * ACLExtUser::clone ( ) const
virtual

Definition at line 82 of file ExtUser.cc.

References ACLExtUser().

◆ context()

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

◆ dump()

SBufList ACLExtUser::dump ( ) const
virtual

Implements ACL.

Definition at line 70 of file ExtUser.cc.

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

◆ dumpOptions()

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

Definition at line 299 of file Acl.cc.

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

Referenced by dump_acl().

◆ empty()

bool ACLExtUser::empty ( ) const
virtual

Implements ACL.

Definition at line 76 of file ExtUser.cc.

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

◆ FindByName()

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

◆ Initialize()

void ACL::Initialize ( )
staticinherited

Definition at line 407 of file Acl.cc.

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

Referenced by serverConnectionsOpen().

◆ isProxyAuth()

bool ACL::isProxyAuth ( ) const
virtualinherited

Reimplemented in ACLExternal, ACLIdent, and ACLProxyAuth.

Definition at line 286 of file Acl.cc.

Referenced by aclIsProxyAuth().

◆ match()

int ACLExtUser::match ( ACLChecklist checklist)
virtual

◆ 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 121 of file Acl.cc.

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

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

◆ matchForCache()

int ACL::matchForCache ( ACLChecklist checklist)
virtualinherited

Reimplemented in ACLProxyAuth.

Definition at line 318 of file Acl.cc.

References fatal().

Referenced by ACL::cacheMatchAcl().

◆ MEMPROXY_CLASS()

ACLExtUser::MEMPROXY_CLASS ( ACLExtUser  )
private

◆ operator delete()

void ACL::operator delete ( void *  )
inherited

Definition at line 87 of file Acl.cc.

References fatal().

◆ operator new()

void * ACL::operator new ( size_t  )
inherited

Definition at line 80 of file Acl.cc.

References fatal().

◆ operator=()

ACLExtUser & ACLExtUser::operator= ( ACLExtUser const &  rhs)

Definition at line 33 of file ExtUser.cc.

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

◆ options()

virtual const Acl::Options& ACL::options ( )
inlinevirtualinherited
Returns
(linked) Options supported by this ACL

Reimplemented in ACLStrategised< M >, ACLDestinationIP, and ACLMaxUserIP.

Definition at line 63 of file Acl.h.

References Acl::NoOptions(), and parse().

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

◆ parse()

void ACLExtUser::parse ( )
virtual

Implements ACL.

Definition at line 53 of file ExtUser.cc.

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

◆ ParseAclLine()

◆ parseFlags()

void ACLExtUser::parseFlags ( )
virtual

Reimplemented from ACL.

Definition at line 47 of file ExtUser.cc.

References data, Acl::NoOptions(), Acl::ParseFlags(), and ACLData< M >::supportedFlags().

◆ prepareForUse()

virtual void ACL::prepareForUse ( )
inlinevirtualinherited

Reimplemented in ACLStrategised< M >, Acl::InnerNode, and ACLMaxConnection.

Definition at line 79 of file Acl.h.

Referenced by ACL::Initialize().

◆ typeString()

char const * ACLExtUser::typeString ( ) const
virtual

Implements ACL.

Definition at line 41 of file ExtUser.cc.

References type_.

◆ valid()

bool ACL::valid ( ) const
virtualinherited

Reimplemented in ACLExternal, ACLStrategised< M >, ACLProxyAuth, ACLMaxConnection, ACLMaxUserIP, and ACLRandom.

Definition at line 115 of file Acl.cc.

Referenced by ACL::ParseAclLine().

Member Data Documentation

◆ cfgline

char* ACL::cfgline
inherited

◆ data

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

Definition at line 38 of file ExtUser.h.

Referenced by dump(), empty(), match(), operator=(), parse(), parseFlags(), and ~ACLExtUser().

◆ name

◆ next

ACL* ACL::next
inherited

Definition at line 85 of file Acl.h.

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

◆ registered

bool ACL::registered
inherited

Definition at line 86 of file Acl.h.

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

◆ type_

char const* ACLExtUser::type_
private

Definition at line 39 of file ExtUser.h.

Referenced by operator=(), and typeString().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors