]> git.ipfire.org Git - thirdparty/squid.git/commit
Prevent Squid forcing -b 2048 into the arguments for sslcrtd_program
authorNathan Hoad <nathan@getoffmalawn.com>
Mon, 2 May 2016 03:17:18 +0000 (15:17 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 2 May 2016 03:17:18 +0000 (15:17 +1200)
commitba5d55c12baa62bc811b6444ee957e7f7d1cf833
treee1ad08fd3aafc10c1253c4e420ac7593e51d414d
parent82bee3871faf047a592db73f1d93f1f9664767fc
Prevent Squid forcing -b 2048 into the arguments for sslcrtd_program

Previously Squid assumed it was running with the default sslcrtd_program, which
takes an argument for the FS block size. This causes issues for administrators
that use their own helpers that happen to take a -b argument that means
something else entirely, causing confusion and preventing them from removing
this argument.

A summary of the changes:

* Move the block size retrieval from Squid into security_file_certgen. It
  does not use fsBlockSize as that introduces a lot of dependencies on
  unrelated Squid code, e.g. fde, Debug, MemBuf.

* Make the -b argument mostly redundant, but leave it there so
  administrators can overrule xstatvfs.

* Fix a small typo.

This work is submitted on behalf of Bloomberg L.P.
src/security/cert_generators/file/security_file_certgen.cc
src/ssl/helper.cc