]> git.ipfire.org Git - thirdparty/squid.git/commit - src/AclRegs.cc
Add 'has' ACL
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Tue, 16 May 2017 14:27:49 +0000 (02:27 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 16 May 2017 14:27:49 +0000 (02:27 +1200)
commit5ec4cffe0838306a6e667bfc3bc7881d61570588
tree0c585ee49b61e68098977b0543990bfbb98e1657
parentdc334f20eb124d1db3321265f70459c3b8871f16
Add 'has' ACL

This ACL detects presence of request, response or ALE transaction
components. Since many ACLs require some of these components, lack of
them in a transaction may spoil the check and confuse admin with
warnings like "... ACL is used in context without an HTTP request".
Using 'has' ACL should help dealing with these problems caused by
component-less transactions.

Also: addressed TODO in item #3 of v4 revision 14752.
src/AclRegs.cc
src/acl/HasComponent.cc [new file with mode: 0644]
src/acl/HasComponent.h [new file with mode: 0644]
src/acl/HasComponentData.cc [new file with mode: 0644]
src/acl/HasComponentData.h [new file with mode: 0644]
src/acl/Makefile.am
src/cf.data.pre