From 00ea0e7db0a0a958309d35e28718949d10d537c9 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 7 Mar 2015 11:10:30 +0100 Subject: http2: use CURL_HTTP_VERSION_* symbols instead of NPN_* Since they already exist and will make comparing easier --- lib/vtls/gtls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/vtls/gtls.c') diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 232e57357..05aef1967 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -1073,13 +1073,13 @@ gtls_connect_step3(struct connectdata *conn, if(proto.size == NGHTTP2_PROTO_VERSION_ID_LEN && !memcmp(NGHTTP2_PROTO_VERSION_ID, proto.data, NGHTTP2_PROTO_VERSION_ID_LEN)) { - conn->negnpn = NPN_HTTP2; + conn->negnpn = CURL_HTTP_VERSION_2_0; } else #endif if(proto.size == ALPN_HTTP_1_1_LENGTH && !memcmp(ALPN_HTTP_1_1, proto.data, ALPN_HTTP_1_1_LENGTH)) { - conn->negnpn = NPN_HTTP1_1; + conn->negnpn = CURL_HTTP_VERSION_1_1; } } else -- cgit v1.2.3