// for ACL::checklistMatches to use
virtual bool hasRequest() const = 0;
virtual bool hasReply() const = 0;
+ virtual bool hasAleXXX() const = 0;
+ /// change the current ACL list
+ /// \return a pointer to the old list value (may be nullptr)
+ const Acl::Tree *changeAcl(const Acl::Tree *t) {
+ const Acl::Tree *old = accessList;
+ if (t != accessList) {
+ cbdataReferenceDone(accessList);
+ accessList = cbdataReference(t);
+ }
+ return old;
+ }
+
private:
/// Calls non-blocking check callback with the answer and destroys self.
void checkCallback(allow_t answer);
/// SSL [certificate validation] errors, in undefined order
Ssl::CertErrors *sslErrors;
/// The peer certificate
- Ssl::X509_Pointer serverCert;
+ Security::CertPointer serverCert;
#endif
- AccessLogEntry::Pointer al; ///< info for the future access.log entry
+ AccessLogEntry::Pointer al; ///< info for the future access.log, and external ACL
ExternalACLEntryPointer extacl_entry;