#include <AclProxyAuth.h>

Inheritance diagram for ACLProxyAuth:
Collaboration diagram for ACLProxyAuth:

Public Member Functions

 ~ACLProxyAuth ()
 ACLProxyAuth (ACLData< char const * > *, char const *)
 ACLProxyAuth (ACLProxyAuth const &)
ACLProxyAuthoperator= (ACLProxyAuth const &)
virtual char const * typeString () const
virtual void parse ()
 parses node represenation in squid.conf; dies on failures More...
virtual bool isProxyAuth () const
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 valid () const
virtual bool empty () const
virtual bool requiresRequest () const
 whether our (i.e. shallow) match() requires checklist to have a request More...
virtual ACLclone () const
virtual int matchForCache (ACLChecklist *checklist)
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 ()
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
bool registered
 added to the global list of ACLs via aclRegister() More...

Private Member Functions

int matchProxyAuth (ACLChecklist *)

Private Attributes

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

Detailed Description

Definition at line 30 of file AclProxyAuth.h.

Constructor & Destructor Documentation

ACLProxyAuth::~ACLProxyAuth ( )

Definition at line 24 of file AclProxyAuth.cc.

References data.

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

Definition at line 29 of file AclProxyAuth.cc.

Referenced by clone().

ACLProxyAuth::ACLProxyAuth ( ACLProxyAuth const &  old)

Definition at line 34 of file AclProxyAuth.cc.

Member Function Documentation

ACL * ACLProxyAuth::clone ( ) const

Definition at line 159 of file AclProxyAuth.cc.

References ACLProxyAuth().

void ACL::context ( const char *  name,
const char *  configuration 
SBufList ACLProxyAuth::dump ( ) const

Implements ACL.

Definition at line 91 of file AclProxyAuth.cc.

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

SBufList ACL::dumpOptions ( )
approximate options configuration

Definition at line 296 of file Acl.cc.

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

Referenced by dump_acl().

bool ACLProxyAuth::empty ( ) const

Implements ACL.

Definition at line 97 of file AclProxyAuth.cc.

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

ACL * ACL::FindByName ( const char *  name)
void ACL::Initialize ( )

Definition at line 404 of file Acl.cc.

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

Referenced by serverConnectionsOpen().

virtual bool ACLProxyAuth::isProxyAuth ( ) const

Reimplemented from ACL.

Definition at line 43 of file AclProxyAuth.h.

int ACLProxyAuth::match ( ACLChecklist checklist)
bool ACL::matches ( ACLChecklist checklist) const

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

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::syncAle().

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

int ACLProxyAuth::matchForCache ( ACLChecklist checklist)
ACLProxyAuth::MEMPROXY_CLASS ( ACLProxyAuth  )
void ACL::operator delete ( void *  )

Definition at line 87 of file Acl.cc.

References fatal().

void * ACL::operator new ( size_t  )

Definition at line 80 of file Acl.cc.

References fatal().

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

Definition at line 40 of file AclProxyAuth.cc.

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

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

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

Definition at line 63 of file Acl.h.

References Acl::NoOptions().

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

void ACLProxyAuth::parse ( )

Implements ACL.

Definition at line 60 of file AclProxyAuth.cc.

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

void ACLProxyAuth::parseFlags ( )

Reimplemented from ACL.

Definition at line 54 of file AclProxyAuth.cc.

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

virtual void ACL::prepareForUse ( )

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

Definition at line 79 of file Acl.h.

Referenced by ACL::Initialize(), and Acl::InnerNode::prepareForUse().

virtual bool ACLProxyAuth::requiresRequest ( ) const

Reimplemented from ACL.

Definition at line 49 of file AclProxyAuth.h.

char const * ACLProxyAuth::typeString ( ) const

Implements ACL.

Definition at line 48 of file AclProxyAuth.cc.

References type_.

bool ACLProxyAuth::valid ( ) const

Reimplemented from ACL.

Definition at line 103 of file AclProxyAuth.cc.

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

Member Data Documentation

char* ACL::cfgline

Definition at line 84 of file Acl.h.

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

ACLData<char const *>* ACLProxyAuth::data

Definition at line 55 of file AclProxyAuth.h.

Referenced by dump(), empty(), matchForCache(), operator=(), parse(), parseFlags(), and ~ACLProxyAuth().

ACL* ACL::next

Definition at line 85 of file Acl.h.

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

bool ACL::registered

Definition at line 86 of file Acl.h.

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

char const* ACLProxyAuth::type_

Definition at line 56 of file AclProxyAuth.h.

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

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






Web Site Translations