]> git.ipfire.org Git - thirdparty/squid.git/commit
Fixed handling of invalid SSL server certificates when splicing connections.
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 30 Dec 2014 15:33:40 +0000 (17:33 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Tue, 30 Dec 2014 15:33:40 +0000 (17:33 +0200)
commitde97c33d5586e4516535e74ed0c55bd8d8c7b986
tree682c85d8074ca093b673af4c6d9adb9a10378ecb
parentbb64d87960915b8f4e5ba159049d5c9d5e545e01
Fixed handling of invalid SSL server certificates when splicing connections.

An unpatched Squid in peek-and-splice mode may splice connections after
receiving a malformed or unsupported SSL server Hello message. This may
happen even if sslproxy_cert_error tells Squid to honor the error. After
this change, Squid honors sslproxy_cert_error setting when:

* no server certificate was found and checked using Squid validation procedure
  (e.g., because the SSL server Hello response was malformed or unsupported); or
* Squid server certificate validation procedure has failed.

If the certificate error is not allowed, Squid terminates the server connection
and attempts to bump the client connection to deliver the error message to the
user.

This is a Measurement Factory project
src/ssl/PeerConnector.cc