Fix AsyncSSLSocket handshake error reporting.
authorKyle Nekritz <knekritz@fb.com>
Thu, 3 Mar 2016 16:51:53 +0000 (08:51 -0800)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Thu, 3 Mar 2016 17:05:29 +0000 (09:05 -0800)
commit4e0e47bbe618fedf797159cccc6aa053b9d8673e
tree5f5397b566b4aae383a696f19645f5892d54e5ba
parent4f782bbfea874fa854dc7bdc471d5e3e75dbf959
Fix AsyncSSLSocket handshake error reporting.

Summary:https://www.openssl.org/docs/manmaster/ssl/SSL_get_error.html
OpenSSL errors are a pain to deal with and we were handling several cases
incorrectly, resulting in a ton of "DH lib" errors when none were likely
actually DH lib errors.

Reviewed By: siyengar

Differential Revision: D2999084

fb-gh-sync-id: b3182be2c199f79ed341af7dbf7524197a838584
shipit-source-id: b3182be2c199f79ed341af7dbf7524197a838584
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/io/async/test/AsyncSSLSocketTest.h
folly/io/async/test/BlockingSocket.h