]> git.ipfire.org Git - thirdparty/squid.git/commit
Add 'has' ACL
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 25 May 2017 12:42:17 +0000 (00:42 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 25 May 2017 12:42:17 +0000 (00:42 +1200)
commiteda0e4b2a6c9e84a16ad4e06c0c3264ac0d3f3cc
tree85666fb9ae7a8fd392fd3eb16d097be5bdc6cafb
parentea408f4e84fdb61b6d25084c3973a68f1ae5e38d
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