Add support for ALPN
authorAlan Frindell <afrind@fb.com>
Wed, 9 Dec 2015 19:55:40 +0000 (11:55 -0800)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Wed, 9 Dec 2015 20:20:24 +0000 (12:20 -0800)
commit7e6064c66cf34a5d02e9312d3d90b43e1185d735
tree12e68b6ac602efe89ce3c50de1a2080e588db615
parent7137cffd8b8fc6a38014f88d670ed934fb8c2b94
Add support for ALPN

Summary: With openssl-1.0.2 and later add support for ALPN.  Clients can request NPN only, but the default is to support either (client will send ALPN list, server will send NPN advertisement if ALPN is not negotiated).

Reviewed By: siyengar

Differential Revision: D2710441

fb-gh-sync-id: a8efe69e1869bbecb4ed9e0a513448fcfdb21ca6
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/io/async/test/AsyncSSLSocketTest.h
folly/io/async/test/MockAsyncSSLSocket.h