Add FOLLY_OPENSSL_HAS_ALPN and FOLLY_OPENSSL_HAS_SNI.
authorZonr Chang <zonr.net@gmail.com>
Mon, 2 Jan 2017 00:24:34 +0000 (16:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 2 Jan 2017 00:32:56 +0000 (16:32 -0800)
commit7dabbf602e29b5613568d438b6a7896041d60f6a
tree25812484628a0c5b43f306c7889c91e2d594d959
parent827187dc13be375241187b6217eb1900005a60ca
Add FOLLY_OPENSSL_HAS_ALPN and FOLLY_OPENSSL_HAS_SNI.

Summary:
This expresses the intention of long predicate on OpenSSL version and
OPENSSL_NO_TLSEXT more clearly.

This also enables ALPN and SNI support when BoringSSL is in use.

ALPN is an essential function to make HTTP/2 work when building Proxygen
with BoringSSL.
Closes https://github.com/facebook/folly/pull/534

Reviewed By: Orvid

Differential Revision: D4375391

Pulled By: yfeldblum

fbshipit-source-id: 009f311bceb0ee911d904d96a3e678a5f7241575
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/SSLContext.cpp
folly/io/async/SSLContext.h
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/portability/OpenSSL.h