|
Squid Web Cache master
|
an "ssl_error" ACL More...
#include <SslError.h>
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. | |
| 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 | |
| bool | matches (ACLChecklist *checklist) const |
| void | parseFlags () |
| configures Acl::Node options, throwing on configuration errors | |
| virtual char const * | 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") | |
| static void | Initialize () |
| static Acl::Node * | FindByName (const SBuf &) |
| A configured ACL with a given name or nil. | |
Public Attributes | |
| SBuf | name |
| char * | cfgline = nullptr |
Protected Member Functions | |
| void | parse () override |
| parses node representation in squid.conf; dies on failures | |
| void | prepareForUse () override |
| SBufList | dump () const override |
| bool | empty () const override |
| const Acl::Options & | lineOptions () override |
Protected Attributes | |
| std::unique_ptr< Parameters > | data |
Private Member Functions | |
| virtual bool | requiresAle () const |
| whether our (i.e. shallow) match() requires checklist to have a AccessLogEntry | |
| virtual bool | requiresRequest () const |
| whether our (i.e. shallow) match() requires checklist to have a request | |
| virtual bool | requiresReply () const |
| whether our (i.e. shallow) match() requires checklist to have a reply | |
| virtual const Acl::Options & | options () |
Static Private Member Functions | |
| static void | ParseNamed (ConfigParser &, NamedAcls &, const SBuf &name) |
| parses acl directive parts that follow aclname | |
Definition at line 20 of file SslError.h.
|
inherited |
Definition at line 26 of file ParameterizedNode.h.
|
inherited |
|
inherited |
Definition at line 401 of file Acl.cc.
References acl_proxy_auth_match_cache::acl_data, dlink_node::data, debugs, dlinkAddTail(), dlink_list::head, acl_proxy_auth_match_cache::link, acl_proxy_auth_match_cache::matchrv, and dlink_node::next.
Referenced by ACLProxyAuth::matchProxyAuth().
|
inherited |
Definition at line 220 of file Acl.cc.
References safe_free, and xstrdup.
Referenced by aclParseAccessLine(), aclParseAclList(), Acl::AllOf::parse(), and ParseAclWithAction().
|
inlineoverrideprotectedvirtualinherited |
Implements Acl::Node.
Definition at line 37 of file ParameterizedNode.h.
|
inherited |
|
inlineoverrideprotectedvirtualinherited |
Implements Acl::Node.
Definition at line 38 of file ParameterizedNode.h.
Definition at line 159 of file Acl.cc.
References assert, Config, debugs, and SquidConfig::namedAcls.
Referenced by aclIsProxyAuth(), Acl::InnerNode::lineParse(), parse_ftp_epsv(), and TestACLMaxUserIP::testParseLine().
|
staticinherited |
Definition at line 471 of file Acl.cc.
References Config, debugs, and SquidConfig::namedAcls.
Referenced by serverConnectionsOpen().
|
virtualinherited |
Reimplemented in ACLProxyAuth, and ACLExternal.
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from Acl::Node.
Definition at line 39 of file ParameterizedNode.h.
|
overridevirtual |
Implements Acl::Node.
Definition at line 14 of file SslError.cc.
References Acl::ParameterizedNode< ACLData< const Security::CertErrors * > >::data, and Filled().
|
inherited |
Orchestrates matching checklist against the Acl::Node using match(), after checking preconditions and while providing debugging.
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().
|
virtualinherited |
|
inherited |
|
inherited |
|
inlineprivatevirtualinherited |
Reimplemented in Acl::DestinationDomainCheck, ACLDestinationIP, Acl::AnnotationCheck, Acl::ServerNameCheck, and ACLMaxUserIP.
Definition at line 98 of file Node.h.
References Acl::NoOptions().
|
inlineoverrideprotectedvirtualinherited |
Implements Acl::Node.
Definition at line 35 of file ParameterizedNode.h.
|
inherited |
Definition at line 360 of file Acl.cc.
References Acl::ParseFlags().
|
staticprivateinherited |
Definition at line 253 of file Acl.cc.
References Assure, SBuf::cmp(), config_input_line, DBG_CRITICAL, DBG_IMPORTANT, DBG_PARSE_NOTE, debugs, ConfigParser::destruct(), fatalf(), HttpPortList, Acl::Make(), and ConfigParser::NextToken().
|
staticinherited |
Definition at line 229 of file Acl.cc.
References CallParser(), DBG_CRITICAL, debugs, ConfigParser::destruct(), RefCount< C >::Make(), and ConfigParser::NextToken().
Referenced by parse_acl(), and TestACLMaxUserIP::testParseLine().
|
inlineoverrideprotectedvirtualinherited |
Reimplemented from Acl::Node.
Definition at line 36 of file ParameterizedNode.h.
|
privatevirtualinherited |
Reimplemented in ACLExternal.
|
privatevirtualinherited |
Reimplemented in Acl::HttpRepHeaderCheck, ACLHTTPStatus, and Acl::ReplyHeaderCheck< header >.
|
privatevirtualinherited |
Reimplemented in Acl::DestinationDomainCheck, ACLExtUser, Acl::HierCodeCheck, Acl::HttpReqHeaderCheck, Acl::MethodCheck, Acl::NoteCheck, Acl::ProtocolCheck, Acl::RequestHeaderCheck< header >, Acl::ServerNameCheck, Acl::TransactionInitiator, Acl::UrlCheck, Acl::UrlLoginCheck, Acl::UrlPathCheck, Acl::UrlPortCheck, ACLMaxUserIP, ACLProxyAuth, and ACLExternal.
|
pure virtualinherited |
Implemented in Acl::AllOf, Acl::AnyOf, ACLARP, Acl::NotNode, Acl::AndNode, Acl::OrNode, Acl::ConnectionsEncrypted, Acl::ConnMark, ACLDestinationIP, ACLEui64, ACLExtUser, ACLHTTPStatus, ACLLocalIP, ACLMaxConnection, ACLRandom, ACLSourceIP, Acl::TransactionInitiator, ACLMaxUserIP, ACLProxyAuth, ACLExternal, and ACLIP.
|
virtualinherited |
Reimplemented in ACLMaxConnection, ACLRandom, Acl::ServerNameCheck, ACLMaxUserIP, ACLProxyAuth, and ACLExternal.
|
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.
|
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 Acl::NotNode::NotNode(), aclDestroyAccessList(), Acl::AnnotateClientCheck::match(), Acl::AnnotateTransactionCheck::match(), Acl::SourceDomainCheck::match(), ACLDestinationIP::match(), ACLRandom::match(), ACLExternal::parse(), and ACLMaxConnection::prepareForUse().