Public Member Functions | |
void * | operator new (size_t size) |
void | operator delete (void *address) |
void * | toCbdata () noexcept |
external_acl () | |
~external_acl () | |
void | add (const ExternalACLEntryPointer &) |
void | trimCache () |
bool | maybeCacheable (const Acl::Answer &) const |
Static Private Attributes | |
static cbdata_type | CBDATA_external_acl = CBDATA_UNKNOWN |
Detailed Description
Definition at line 69 of file external_acl.cc.
Constructor & Destructor Documentation
◆ external_acl()
external_acl::external_acl | ( | ) |
Definition at line 132 of file external_acl.cc.
References local_addr, and Ip::Address::setLocalhost().
◆ ~external_acl()
external_acl::~external_acl | ( | ) |
Definition at line 153 of file external_acl.cc.
References cache, cmdline, dlink_node::data, external_acl_cache_delete(), hashFreeMemory(), helperShutdown(), lru_list, name, node::next, next, dlink_list::tail, theHelper, wordlistDestroy(), and xfree.
Member Function Documentation
◆ add()
void external_acl::add | ( | const ExternalACLEntryPointer & | anEntry | ) |
Definition at line 444 of file external_acl.cc.
References assert, cache, cache_entries, ExternalACLEntry::def, dlinkAdd(), RefCount< C >::getRaw(), hash_join(), ExternalACLEntry::lru, lru_list, and trimCache().
Referenced by external_acl_cache_add().
◆ maybeCacheable()
bool external_acl::maybeCacheable | ( | const Acl::Answer & | result | ) | const |
Definition at line 467 of file external_acl.cc.
References ACCESS_DUNNO, Acl::Answer::allowed(), cache_size, negative_ttl, and ttl.
Referenced by external_acl_cache_add(), and external_acl_cache_touch().
◆ operator delete()
|
inline |
Definition at line 75 of file external_acl.cc.
◆ operator new()
|
inline |
Definition at line 75 of file external_acl.cc.
◆ toCbdata()
|
inlinenoexcept |
Definition at line 75 of file external_acl.cc.
◆ trimCache()
void external_acl::trimCache | ( | ) |
Definition at line 458 of file external_acl.cc.
References cache_entries, cache_size, dlink_node::data, external_acl_cache_delete(), lru_list, and dlink_list::tail.
Referenced by add().
Member Data Documentation
◆ cache
hash_table* external_acl::cache |
Definition at line 105 of file external_acl.cc.
Referenced by ~external_acl(), aclMatchExternal(), add(), external_acl_cache_add(), and external_acl_cache_delete().
◆ cache_entries
int external_acl::cache_entries |
Definition at line 111 of file external_acl.cc.
Referenced by add(), external_acl_cache_delete(), and trimCache().
◆ cache_size
int external_acl::cache_size |
Definition at line 109 of file external_acl.cc.
Referenced by external_acl_cache_delete(), external_acl_entry_expired(), external_acl_grace_expired(), maybeCacheable(), parse_externalAclHelper(), ExternalACLLookup::Start(), and trimCache().
◆ CBDATA_external_acl
|
staticprivate |
Definition at line 75 of file external_acl.cc.
◆ children
Helper::ChildConfig external_acl::children |
Definition at line 101 of file external_acl.cc.
Referenced by parse_externalAclHelper().
◆ cmdline
wordlist* external_acl::cmdline |
Definition at line 99 of file external_acl.cc.
Referenced by ~external_acl(), and parse_externalAclHelper().
◆ format
Format::Format external_acl::format |
Definition at line 97 of file external_acl.cc.
Referenced by makeExternalAclKey(), and parse_externalAclHelper().
◆ grace
int external_acl::grace |
Definition at line 93 of file external_acl.cc.
Referenced by external_acl_grace_expired(), and parse_externalAclHelper().
◆ local_addr
Ip::Address external_acl::local_addr |
Definition at line 127 of file external_acl.cc.
Referenced by external_acl(), and parse_externalAclHelper().
◆ lru_list
dlink_list external_acl::lru_list |
Definition at line 107 of file external_acl.cc.
Referenced by ~external_acl(), add(), external_acl_cache_delete(), external_acl_cache_touch(), and trimCache().
◆ name
char* external_acl::name |
Definition at line 95 of file external_acl.cc.
Referenced by ~external_acl(), aclMatchExternal(), ACLExternal::dump(), parse_externalAclHelper(), and ExternalACLLookup::Start().
◆ negative_ttl
int external_acl::negative_ttl |
Definition at line 91 of file external_acl.cc.
Referenced by external_acl_entry_expired(), external_acl_grace_expired(), maybeCacheable(), and parse_externalAclHelper().
◆ next
external_acl* external_acl::next |
Definition at line 81 of file external_acl.cc.
Referenced by ~external_acl(), externalAclInit(), externalAclShutdown(), externalAclStats(), and parse_externalAclHelper().
◆ queue
dlink_list external_acl::queue |
Definition at line 113 of file external_acl.cc.
Referenced by externalAclHandleReply(), and ExternalACLLookup::Start().
◆ quote
Format::Quoting external_acl::quote |
Definition at line 125 of file external_acl.cc.
Referenced by makeExternalAclKey(), and parse_externalAclHelper().
◆ require_auth
bool external_acl::require_auth |
Configuration flag. May only be altered by the configuration parser.
Indicates that all uses of this external_acl_type helper require authentication details to be processed. If none are available its a fail match.
Definition at line 122 of file external_acl.cc.
Referenced by aclMatchExternal(), ACLExternal::isProxyAuth(), parse_externalAclHelper(), and ACLExternal::valid().
◆ theHelper
Helper::Client::Pointer external_acl::theHelper |
Definition at line 103 of file external_acl.cc.
Referenced by ~external_acl(), aclMatchExternal(), externalAclShutdown(), and ExternalACLLookup::Start().
◆ ttl
int external_acl::ttl |
Definition at line 89 of file external_acl.cc.
Referenced by external_acl_entry_expired(), external_acl_grace_expired(), maybeCacheable(), and parse_externalAclHelper().
The documentation for this class was generated from the following file:
- src/external_acl.cc