From: Amos Jeffries Date: Mon, 20 Feb 2017 12:51:03 +0000 (+1300) Subject: TLS: refactor Security::ContextPointer to a std::shared_ptr X-Git-Tag: M-staged-PR71~257 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eaf1b855e30dc7e22c91a99366f01db05975ff6d;p=thirdparty%2Fsquid.git 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. --- eaf1b855e30dc7e22c91a99366f01db05975ff6d