Change AsyncSSLSocket getSecurityProtocol to handle unencrypted mode
authorNeel Goyal <ngoyal@fb.com>
Thu, 17 Aug 2017 17:59:06 +0000 (10:59 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 17 Aug 2017 18:04:18 +0000 (11:04 -0700)
commit4ff438f88567303e6c3766274895f9f07b546c3c
treececde00c7208d876a8899d7384f9fb74d8bad718
parent6078246acdb8784febc023d5d9e0fb4ddcd81f34
Change AsyncSSLSocket getSecurityProtocol to handle unencrypted mode

Summary: Return empty string for `getSecurityProtocol` if the socket is good and the handshake failed, otherwise "TLS"

Reviewed By: knekritz

Differential Revision: D5647637

fbshipit-source-id: b95cbf39e4bb7f89b1ebcbc0238c2becba7ad42a
folly/io/async/AsyncSSLSocket.h