]> git.ipfire.org Git - thirdparty/squid.git/commit
TLS: refactor Security::ContextPointer to a std::shared_ptr
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Feb 2017 12:51:03 +0000 (01:51 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 20 Feb 2017 12:51:03 +0000 (01:51 +1300)
commiteaf1b855e30dc7e22c91a99366f01db05975ff6d
tree6c4dd538dc3b557ef5c8c9dad867b99ab56f7ffd
parentfb654382eae60a16493d525301dbc572ccef598c
parent5d3aafbed3edd9d4cc50d9f276010c51c6b942fe
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.