From 4d8db595cab1222927a251a9b836ac4947b7d73d Mon Sep 17 00:00:00 2001 From: Fabian Frank Date: Tue, 4 Feb 2014 00:10:37 -0800 Subject: gtls: add ALPN support Add ALPN support when using GnuTLS >= 3.2.0. This allows libcurl to negotiate HTTP/2.0 for https connections when built with GnuTLS. See: http://www.gnutls.org/manual/gnutls.html#Application-Layer-Protocol-Negotiation-_0028ALPN_0029 http://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg-04 --- lib/vtls/openssl.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'lib/vtls/openssl.c') diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 063945922..2f9f8a0e5 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -1415,13 +1415,6 @@ static void ssl_tls_trace(int direction, int ssl_ver, int content_type, #endif -/* see http://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg-04 */ -#ifdef HAS_ALPN -#define ALPN_HTTP_1_1_LENGTH 8 -#define ALPN_HTTP_1_1 "http/1.0" -#endif - - /* * in is a list of lenght prefixed strings. this function has to select * the protocol we want to use from the list and write its string into out. -- cgit v1.2.3