Checklist.h
Go to the documentation of this file.
181 Breadcrumb(const Acl::InnerNode *aParent, Acl::Nodes::const_iterator aPos): parent(aParent), position(aPos) {}
182 bool operator ==(const Breadcrumb &b) const { return parent == b.parent && (!parent || position == b.position); }
void(ACLFilledChecklist &, const Acl::Node &) AsyncStarter
a function that initiates asynchronous ACL checks; see goAsync()
Definition: Checklist.h:36
Definition: FilledChecklist.h:33
Definition: Acl.h:53
virtual void verifyAle() const =0
warns if there are uninitialized ALE components and fills them
std::stack< Breadcrumb > matchPath
suspended (due to an async lookup) matches() in the ACL tree
Definition: Checklist.h:213
NodeMatchingResult
possible outcomes when trying to match a single ACL node in a list
Definition: Checklist.h:190
void banAction(const Acl::Answer &action)
add action to the list of banned actions
Definition: Checklist.cc:358
bool keepMatching() const
Whether we should continue to match tree nodes or stop/pause.
Definition: Checklist.h:96
std::optional< SBuf > lastCheckedName_
the name of the last evaluated ACL (if any ACLs were evaluated)
Definition: Checklist.h:218
virtual bool hasAle() const =0
An intermediate Acl::Node tree node. Manages a collection of child tree nodes.
Definition: InnerNode.h:22
Definition: Checklist.h:30
Position of a child node within an Acl::Node tree.
Definition: Checklist.h:177
bool asyncInProgress() const
async call has been started and has not finished (or failed) yet
Definition: Checklist.h:101
void setLastCheckedName(const SBuf &name)
remember the name of the last ACL being evaluated
Definition: Checklist.h:128
Definition: HttpRequest.h:48
bool operator==(const Breadcrumb &b) const
Definition: Checklist.h:182
std::vector< Acl::Answer > bannedActions_
the list of actions which must ignored during acl checks
Definition: Checklist.h:215
virtual bool hasRequest() const =0
void markFinished(const Acl::Answer &newAnswer, const char *reason)
Definition: Checklist.cc:45
bool operator!=(const Breadcrumb &b) const
Definition: Checklist.h:183
virtual void syncAle(HttpRequest *adaptedRequest, const char *logUri) const =0
assigns uninitialized adapted_request and url ALE components
virtual bool hasReply() const =0
void preCheck(const char *what)
prepare for checking ACLs; called once per check
Definition: Checklist.cc:56
Breadcrumb(const Acl::InnerNode *aParent, Acl::Nodes::const_iterator aPos)
Definition: Checklist.h:181
unsigned asyncLoopDepth_
how many times the current async state has resumed
Definition: Checklist.h:208
void matchAndFinish()
performs (or resumes) an ACL tree match and, if successful, sets the action
Definition: Checklist.cc:257
bool prepNonBlocking()
common parts of nonBlockingCheck() and resumeNonBlockingCheck()
Definition: Checklist.cc:21
bool matchChild(const Acl::InnerNode *parent, Acl::Nodes::const_iterator pos)
Definition: Checklist.cc:70
void nonBlockingCheck(ACLCB *callback, void *callback_data)
Definition: Checklist.cc:206
bool bannedAction(const Acl::Answer &action) const
whether the action is banned or not
Definition: Checklist.cc:350
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products