an "ssl_error" ACL More...

#include <SslError.h>

Inheritance diagram for Acl::CertificateErrorCheck:
Collaboration diagram for Acl::CertificateErrorCheck:

Public Types

using Parameters = ACLData< const Security::CertErrors * >
 
using Pointer = RefCount< Node >
 

Public Member Functions

int match (ACLChecklist *) override
 Matches the actual data in checklist against this Acl::Node. More...
 
virtual SBufList dump () const =0
 
virtual bool empty () const =0
 
void * operator new (size_t)
 
void operator delete (void *)
 
void context (const SBuf &aName, const char *configuration)
 sets user-specified ACL name and squid.conf context More...
 
bool matches (ACLChecklist *checklist) const
 
void parseFlags ()
 configures Acl::Node options, throwing on configuration errors More...
 
virtual const char * typeString () const =0
 
virtual bool isProxyAuth () const
 
virtual bool valid () const
 
int cacheMatchAcl (dlink_list *cache, ACLChecklist *)
 
virtual int matchForCache (ACLChecklist *checklist)
 
void dumpWhole (const char *directiveName, std::ostream &)
 

Static Public Member Functions

static void ParseNamedAcl (ConfigParser &, NamedAcls *&)
 parses acl directive parts that follow directive name (i.e. "acl") More...
 
static void Initialize ()
 
static Acl::NodeFindByName (const SBuf &)
 A configured ACL with a given name or nil. More...
 

Public Attributes

SBuf name
 
char * cfgline = nullptr
 

Protected Member Functions

void parse () override
 parses node representation in squid.conf; dies on failures More...
 
void prepareForUse () override
 
SBufList dump () const override
 
bool empty () const override
 
const Acl::OptionslineOptions () override
 

Protected Attributes

std::unique_ptr< Parametersdata
 

Private Member Functions

virtual bool requiresAle () const
 whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry More...
 
virtual bool requiresRequest () const
 whether our (i.e. shallow) match() requires checklist to have a request More...
 
virtual bool requiresReply () const
 whether our (i.e. shallow) match() requires checklist to have a reply More...
 
virtual const Acl::Optionsoptions ()
 

Static Private Member Functions

static void ParseNamed (ConfigParser &, NamedAcls &, const SBuf &name)
 parses acl directive parts that follow aclname More...
 

Detailed Description

Definition at line 20 of file SslError.h.

Member Typedef Documentation

◆ Parameters

Definition at line 26 of file ParameterizedNode.h.

◆ Pointer

using Acl::Node::Pointer = RefCount<Node>
inherited

Definition at line 29 of file Node.h.

Member Function Documentation

◆ cacheMatchAcl()

◆ context()

void Acl::Node::context ( const SBuf aName,
const char *  configuration 
)
inherited

Definition at line 220 of file Acl.cc.

References safe_free, and xstrdup.

Referenced by aclParseAccessLine(), aclParseAclList(), Acl::AllOf::parse(), and ParseAclWithAction().

◆ dump() [1/2]

◆ dump() [2/2]

SBufList Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::dump
inlineoverrideprotectedinherited

Definition at line 37 of file ParameterizedNode.h.

◆ dumpWhole()

void Acl::Node::dumpWhole ( const char *  directiveName,
std::ostream &  os 
)
inherited

Prints aggregated "acl" (or similar) directive configuration, including the given directive name, ACL name, ACL type, and ACL parameters. The printed parameters are collected from all same-name "acl" directives.

Definition at line 371 of file Acl.cc.

References asList().

◆ empty() [1/2]

◆ empty() [2/2]

bool Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::empty
inlineoverrideprotectedinherited

Definition at line 38 of file ParameterizedNode.h.

◆ FindByName()

Acl::Node * Acl::Node::FindByName ( const SBuf name)
staticinherited

◆ Initialize()

void Acl::Node::Initialize ( )
staticinherited

Definition at line 471 of file Acl.cc.

References Config, debugs, and SquidConfig::namedAcls.

Referenced by serverConnectionsOpen().

◆ isProxyAuth()

bool Acl::Node::isProxyAuth ( ) const
virtualinherited

Reimplemented in ACLExternal, and ACLProxyAuth.

Definition at line 354 of file Acl.cc.

◆ lineOptions()

const Acl::Options& Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::lineOptions
inlineoverrideprotectedvirtualinherited
Returns
(linked) "line" Options supported by this Acl::Node
See also
Acl::Node::options()

Reimplemented from Acl::Node.

Definition at line 39 of file ParameterizedNode.h.

◆ match()

int Acl::CertificateErrorCheck::match ( ACLChecklist checklist)
overridevirtual

◆ matches()

bool Acl::Node::matches ( ACLChecklist checklist) const
inherited

Orchestrates matching checklist against the Acl::Node 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 189 of file Acl.cc.

References ACLChecklist::asyncInProgress(), DBG_IMPORTANT, debugs, ACLChecklist::hasAle(), ACLChecklist::hasReply(), ACLChecklist::hasRequest(), ACLChecklist::setLastCheckedName(), and ACLChecklist::verifyAle().

Referenced by ACLChecklist::matchAndFinish().

◆ matchForCache()

int Acl::Node::matchForCache ( ACLChecklist checklist)
virtualinherited

Reimplemented in ACLProxyAuth.

Definition at line 383 of file Acl.cc.

References fatal().

◆ operator delete()

void Acl::Node::operator delete ( void *  )
inherited

Definition at line 153 of file Acl.cc.

References fatal().

◆ operator new()

void * Acl::Node::operator new ( size_t  )
inherited

Definition at line 147 of file Acl.cc.

References fatal().

◆ options()

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

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

Definition at line 98 of file Node.h.

References Acl::NoOptions().

◆ parse()

void Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::parse
inlineoverrideprotectedvirtualinherited

Implements Acl::Node.

Definition at line 35 of file ParameterizedNode.h.

◆ parseFlags()

void Acl::Node::parseFlags ( )
inherited

Definition at line 360 of file Acl.cc.

References Acl::ParseFlags().

◆ ParseNamed()

void Acl::Node::ParseNamed ( ConfigParser parser,
NamedAcls namedAcls,
const SBuf name 
)
staticprivateinherited

◆ ParseNamedAcl()

void Acl::Node::ParseNamedAcl ( ConfigParser parser,
NamedAcls *&  namedAcls 
)
staticinherited

◆ prepareForUse()

void Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::prepareForUse
inlineoverrideprotectedvirtualinherited

Reimplemented from Acl::Node.

Definition at line 36 of file ParameterizedNode.h.

◆ requiresAle()

bool Acl::Node::requiresAle ( ) const
privatevirtualinherited

Reimplemented in ACLExternal.

Definition at line 443 of file Acl.cc.

◆ requiresReply()

bool Acl::Node::requiresReply ( ) const
privatevirtualinherited

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

Definition at line 449 of file Acl.cc.

◆ requiresRequest()

◆ typeString()

◆ valid()

bool Acl::Node::valid ( ) const
virtualinherited

Reimplemented in ACLExternal, ACLProxyAuth, Acl::ServerNameCheck, ACLMaxUserIP, ACLMaxConnection, and ACLRandom.

Definition at line 183 of file Acl.cc.

Member Data Documentation

◆ cfgline

char* Acl::Node::cfgline = nullptr
inherited

Definition at line 83 of file Node.h.

◆ data

std::unique_ptr<Parameters> Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::data
protectedinherited

Points to items this ACL is configured to match. A derived class ensures that this pointer is never nil after object construction ends.

Definition at line 43 of file ParameterizedNode.h.

◆ name

SBuf Acl::Node::name
inherited

Either aclname parameter from the explicitly configured acl directive or a label generated for an internal ACL tree node. All Node objects corresponding to one Squid configuration have unique names. See also: context() and FindByName().

Definition at line 81 of file Node.h.

Referenced by aclDestroyAccessList(), Acl::AnnotateClientCheck::match(), Acl::AnnotateTransactionCheck::match(), ACLRandom::match(), Acl::SourceDomainCheck::match(), ACLDestinationIP::match(), Acl::NotNode::NotNode(), ACLExternal::parse(), and ACLMaxConnection::prepareForUse().


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

 

Introduction

Documentation

Support

Miscellaneous