]> git.ipfire.org Git - thirdparty/squid.git/commit
TLS: refactor Security::ContextPointer to a std::shared_ptr
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Feb 2017 13:35:05 +0000 (02:35 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 10 Feb 2017 13:35:05 +0000 (02:35 +1300)
commit1c1fae0f30020cde7d3c39854a3870fb6d62f801
tree5a955e3846ea733951507a860a8a680256710e67
parent40f384386bcf52744d1b153b6229c3d334b900ef
TLS: refactor Security::ContextPointer to a std::shared_ptr

These pointers now use the same construction pattern tested out with
Security::SessionPointer.

It also fixes a reference counting bug in GnuTLS code paths where the
PeerConnector::initialize() method would be passed a temporary Pointer
and thus free the context/credentials before it was used by the session
verify logics.
src/client_side.cc
src/security/Context.h
src/security/PeerOptions.cc
src/security/ServerOptions.cc
src/security/Session.h