Allow SSLSessionCallbacks to be used on SSL* that isn't attached to AsyncSSLSocket
authorNeel Goyal <ngoyal@fb.com>
Thu, 4 Feb 2016 18:43:06 +0000 (10:43 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Thu, 4 Feb 2016 19:20:26 +0000 (11:20 -0800)
commit47241bf82f54365511b514bf83c9895af68fa6ab
treeadbaefdd0ae8b45fdf9b49823bb717809511ec33
parent504f7fc5e3b9a60065113dc1725655ed5e9e872e
Allow SSLSessionCallbacks to be used on SSL* that isn't attached to AsyncSSLSocket

Summary: The session callbacks assumed that the SSL* was associated with a folly::AsyncSSLSocket when it didn't need to.  This enables apps that manage their own SSL* to use these callbacks.

Reviewed By: yfeldblum

Differential Revision: D2896426

fb-gh-sync-id: c51df6b4cb3f4cc188a6411c1f3e7e89e96e8a67
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h