]> git.ipfire.org Git - thirdparty/squid.git/commit
Cleanup: Refactor custom ACL-controlled actions configuration code.
authorEduard Bagdasaryan <eduard.bagdasaryan@measurement-factory.com>
Thu, 8 Dec 2016 20:38:12 +0000 (09:38 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 8 Dec 2016 20:38:12 +0000 (09:38 +1300)
commitba6fffba7bbad6c0efcb9613b16aa97573ee7ef0
tree5abf63555dd83ff3d7fe0ec5646468e9d4fb12e0
parent2e2ef19a20745eccfdcac023e16ac5184be0354b
Cleanup: Refactor custom ACL-controlled actions configuration code.

* Reduced parsing code duplication by adding ParseAclWithAction().

* Used functors for generic action-to-string conversions. It is possible
  now to perform such conversions providing lambda expressions.

* Used vectors of strings instead of C-style arrays for storing
  conversion tables and check against bounds with vector::at().
src/acl/Tree.cc
src/acl/Tree.h
src/cache_cf.cc
src/ssl/support.cc
src/ssl/support.h
src/tests/stub_libsslsquid.cc