external_acl.cc
Go to the documentation of this file.
63static ExternalACLEntryPointer external_acl_cache_add(external_acl * def, const char *key, ExternalACLEntryData const &data);
203 debugs(0, DBG_CRITICAL, "WARNING: external_acl_type option children=N has been deprecated in favor of children-max=N and children-startup=N");
222 debugs(3, DBG_PARSE_NOTE(2), "WARNING: external_acl_type option protocol=3.0 is deprecated. Remove this from your config.");
225 debugs(3, DBG_PARSE_NOTE(2), "WARNING: external_acl_type option quote=url is deprecated. Remove this from your config.");
228 debugs(3, DBG_PARSE_NOTE(2), "WARNING: external_acl_type option quote=shell is deprecated. Use protocol=2.5 if still needed.");
235 debugs(3, DBG_CRITICAL, "WARNING: Error converting " << a->local_addr << " to IPv4 in " << a->name );
239 debugs(3, DBG_CRITICAL, "WARNING: --enable-ipv6 required for external ACL helpers to use IPv6: " << a->name );
296 debugs(82, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: external_acl_type %CA_CERT_* code is obsolete. Use %USER_CA_CERT_* instead");
305 debugs(82, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: external_acl_type format %<{...} is deprecated. Use " << tmp);
314 debugs(82, DBG_PARSE_NOTE(DBG_IMPORTANT), "WARNING: external_acl_type format %>{...} is deprecated. Use " << tmp);
450 ExternalACLEntry *e = const_cast<ExternalACLEntry *>(anEntry.getRaw()); // XXX: make hash a std::map of Pointer.
490 explicit external_acl_data(external_acl *aDef) : def(cbdataReference(aDef)), name(nullptr), arguments(nullptr) {}
545 debugs(28, DBG_CRITICAL, "ERROR: Cannot use proxy auth because no authentication schemes were compiled.");
550 debugs(28, DBG_CRITICAL, "ERROR: Cannot use proxy auth because no authentication schemes are fully configured.");
611 debugs(82, 9, "entry key='" << (char *)entry->key << "', our key='" << key << "' do not match. Discarded.");
756 ExternalACLEntry *e = const_cast<ExternalACLEntry *>(entry.getRaw()); // XXX: make hash a std::map of Pointer.
852 if (const ExternalACLEntryPointer oldentry = static_cast<ExternalACLEntry *>(hash_lookup(def->cache, key)))
886 ExternalACLEntry *e = const_cast<ExternalACLEntry *>(entry.getRaw()); // XXX: make hash a std::map of Pointer.
ACLFilledChecklist * Filled(ACLChecklist *checklist)
convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>
Definition: FilledChecklist.h:120
void UpdateRequestNotes(ConnStateData *csd, HttpRequest &request, NotePairs const &helperNotes)
Definition: HttpRequest.cc:760
Definition: Checklist.h:27
void markFinished(const Acl::Answer &newAnswer, const char *reason)
Definition: Checklist.cc:57
bool keepMatching() const
Whether we should continue to match tree nodes or stop/pause.
Definition: Checklist.h:146
void resumeNonBlockingCheck(AsyncState *state)
Definition: Checklist.cc:261
Definition: ExternalACL.h:38
static void ExternalAclLookup(ACLChecklist *ch, ACLExternal *)
Definition: external_acl.cc:1015
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this ACL.
Definition: external_acl.cc:705
void parse() override
parses node representation in squid.conf; dies on failures
Definition: external_acl.cc:508
Definition: FilledChecklist.h:32
AccessLogEntry::Pointer al
info for the future access.log, and external ACL
Definition: FilledChecklist.h:101
ExternalACLEntryPointer extacl_entry
Definition: FilledChecklist.h:103
const char * lastAclName
string for external_acl_type ACL format code
Definition: AccessLogEntry.h:191
Definition: Acl.h:128
Definition: ExternalACLEntry.h:29
Definition: ExternalACLEntry.h:55
Definition: ExternalACL.h:20
static void Start(ACLChecklist *checklist, external_acl_data *acl, bool bg)
Definition: external_acl.cc:1021
void checkForAsync(ACLChecklist *) const override
Definition: external_acl.cc:1150
static void LookupDone(void *data, const ExternalACLEntryPointer &result)
Called when an async lookup returns.
Definition: external_acl.cc:1163
Definition: Format.h:42
void assemble(MemBuf &mb, const AccessLogEntryPointer &al, int logSequenceNumber) const
assemble the state information into a formatted line.
Definition: Format.cc:377
Definition: Token.h:36
Definition: ChildConfig.h:22
Definition: Reply.h:30
CbcPointer< ConnStateData > clientConnectionManager
Definition: HttpRequest.h:232
Definition: Address.h:41
Definition: MemBuf.h:24
void append(const NotePairs *src)
Append the entries of the src NotePairs list to our list.
Definition: Notes.cc:374
void appendf(const char *fmt,...) PRINTF_FORMAT_ARG2
Append operation with printf-style arguments.
Definition: Packable.h:61
Definition: Store.h:42
Definition: cbdata.cc:38
Definition: dlink.h:24
Definition: dlink.h:15
Definition: external_acl.cc:898
externalAclState(external_acl *aDef, const char *aKey)
Definition: external_acl.cc:902
Definition: external_acl.cc:486
external_acl_data(external_acl *aDef)
Definition: external_acl.cc:490
Definition: external_acl.cc:70
bool maybeCacheable(const Acl::Answer &) const
Definition: external_acl.cc:467
Definition: hash.h:23
Definition: wordlist.h:20
static void externalAclRegisterWithCacheManager(void)
Definition: external_acl.cc:1101
void parse_externalAclHelper(external_acl **list)
Definition: external_acl.cc:179
static void externalAclHandleReply(void *data, const Helper::Reply &reply)
Definition: external_acl.cc:951
static int external_acl_grace_expired(external_acl *def, const ExternalACLEntryPointer &entry)
Definition: external_acl.cc:828
static void external_acl_cache_delete(external_acl *def, const ExternalACLEntryPointer &entry)
Definition: external_acl.cc:882
static char * makeExternalAclKey(ACLFilledChecklist *ch, external_acl_data *acl_data)
Definition: external_acl.cc:761
static void copyResultsFromEntry(const HttpRequest::Pointer &req, const ExternalACLEntryPointer &entry)
Definition: external_acl.cc:572
void free_externalAclHelper(external_acl **list)
Definition: external_acl.cc:424
static Acl::Answer aclMatchExternal(external_acl_data *acl, ACLFilledChecklist *ch)
Definition: external_acl.cc:597
static void external_acl_cache_touch(external_acl *def, const ExternalACLEntryPointer &entry)
Definition: external_acl.cc:749
static int external_acl_entry_expired(external_acl *def, const ExternalACLEntryPointer &entry)
Definition: external_acl.cc:816
static ExternalACLEntryPointer external_acl_cache_add(external_acl *def, const char *key, ExternalACLEntryData const &data)
Definition: external_acl.cc:844
static external_acl * find_externalAclHelper(const char *name)
Definition: external_acl.cc:431
void dump_externalAclHelper(StoreEntry *sentry, const char *name, const external_acl *list)
Definition: external_acl.cc:374
const char * external_acl_message
SQUIDCEXTERN void hash_remove_link(hash_table *, hash_link *)
Definition: hash.cc:220
Definition: SchemeConfig.h:28
void RegisterAction(char const *action, char const *desc, OBJH *handler, int pw_req_flag, int atomic)
Definition: Registration.cc:16
Definition: parse.c:104