]> git.ipfire.org Git - thirdparty/squid.git/commit - src/ssl/support.cc
Fixes and improvments
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 14 Apr 2016 14:30:54 +0000 (17:30 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 14 Apr 2016 14:30:54 +0000 (17:30 +0300)
commit168d2b3069db2d9a53fd7edac2e99caa1f735b64
tree0a9689a0e5d324be7bde3848c779c8d1ef1ae4a9
parent0db7e63b7fb31fce2b04ea3e46237bf334740fe4
Fixes and improvments

- Throw a TextException on errors in Ssl::SSL_add_untrusted_cert
- Move most of the code from ConnStateData::start() into the new virtual method
  ConnStateData::prepUserConnection. Call this method instead calling
  grandparents ::start() method from Downloader::start().
  Also implement an empty Downloader::prepUserConnection() method
- Fix Downloader::isOpen() to use doneAll() to check if its jobs is finished
  and its job assumed as closed.
- Fix Downloader::start to handle the case a wrong HTTP request passed from
  the user (eg malformed URL). In this case calaback to the user with an
  Http::scInternalServerError.
- Remove tbe Downloader::callException() method, existed only to print a
  debug message. Add a debug message in AsyncJob::callException method instead.
- Replaces NULL with nullptr
- Fixes debug messages and comments
src/Downloader.cc
src/Downloader.h
src/base/AsyncJob.cc
src/client_side.cc
src/client_side.h
src/client_side_request.cc
src/servers/Server.cc
src/ssl/PeerConnector.cc
src/ssl/PeerConnector.h
src/ssl/support.cc