Unverified Commit e750f142 authored by Shigeki Ohtsu's avatar Shigeki Ohtsu Committed by Myles Borins
Browse files

tls, crypto: add ALPN Support

cherry-pick 802a2e79 from v6-staging.

ALPN is added to tls according to RFC7301, which supersedes NPN.
When the server receives both NPN and ALPN extensions from the client,
ALPN takes precedence over NPN and the server does not send NPN
extension to the client. alpnProtocol in TLSSocket always returns
false when no selected protocol exists by ALPN.
In https server, http/1.1 token is always set when no
options.ALPNProtocols exists.

PR-URL: https://github.com/nodejs/node/pull/2564


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
Reviewed-By: default avatarBen Noordhuis <info@bnoordhuis.nl>
parent 7a9c8d8f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment