]> git.ipfire.org Git - thirdparty/curl.git/commit
TLS: move the ALPN/NPN enable bits to the connection 789/head
authorDaniel Stenberg <daniel@haxx.se>
Mon, 9 May 2016 14:50:11 +0000 (16:50 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 9 May 2016 19:30:25 +0000 (15:30 -0400)
commitf6767f5435f4c8230b382f18d4a2917ae37641d5
tree40839e6a1367ede5506d77484a7b30e818d4709c
parent5bf5f6ebfcede78ef7c2b16daa41c4b7ba266087
TLS: move the ALPN/NPN enable bits to the connection

Only protocols that actually have a protocol registered for ALPN and NPN
should try to get that negotiated in the TLS handshake. That is only
HTTPS (well, http/1.1 and http/2) right now. Previously ALPN and NPN
would wrongly be used in all handshakes if libcurl was built with it
enabled.

Reported-by: Jay Satiro
Fixes #789
lib/http.c
lib/url.c
lib/urldata.h
lib/vtls/cyassl.c
lib/vtls/gtls.c
lib/vtls/mbedtls.c
lib/vtls/nss.c
lib/vtls/openssl.c
lib/vtls/polarssl.c
lib/vtls/schannel.c