~yadi/squid/gnutls-pt2

Viewing all changes in revision 14929.

  • Committer: Amos Jeffries
  • Date: 2017-02-10 13:35:05 UTC
  • Revision ID: squid3@treenet.co.nz-20170210133505-wprrblycwblr6w3z
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: