From 3375578dcfb563c35dfedd20f8e5749b6e0028c2 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 25 May 2016 10:45:48 +0300 Subject: [PATCH] Add. Support curl 7.49.0 --- appveyor.yml | 2 +- src/lcerr_easy.h | 3 +++ src/lcopteasy.h | 8 ++++++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index d3e349b..2e4c529 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,7 +7,7 @@ shallow_clone: true environment: LUAROCKS_VER: 2.2.1 - CURL_VER: 7.48.0 + CURL_VER: 7.49.0 matrix: - LUA_VER: 5.1.5 diff --git a/src/lcerr_easy.h b/src/lcerr_easy.h index 2affc9d..3c8cd4c 100644 --- a/src/lcerr_easy.h +++ b/src/lcerr_easy.h @@ -118,3 +118,6 @@ ERR_ENTRY ( SSL_PINNEDPUBKEYNOTMATCH ) #if LCURL_CURL_VER_GE(7,41,0) ERR_ENTRY ( SSL_INVALIDCERTSTATUS ) #endif +#if LCURL_CURL_VER_GE(7,49,0) +ERR_ENTRY ( HTTP2_STREAM ) +#endif diff --git a/src/lcopteasy.h b/src/lcopteasy.h index 4b4bc3e..9b53ae1 100644 --- a/src/lcopteasy.h +++ b/src/lcopteasy.h @@ -265,6 +265,9 @@ FLG_ENTRY( HTTP_VERSION_2 ) #if LCURL_CURL_VER_GE(7,47,0) FLG_ENTRY( HTTP_VERSION_2TLS ) #endif +#if LCURL_CURL_VER_GE(7,49,0) +FLG_ENTRY( HTTP_VERSION_2_PRIOR_KNOWLEDGE ) +#endif FLG_ENTRY( READFUNC_PAUSE ) /*7.18.0*/ FLG_ENTRY( WRITEFUNC_PAUSE ) /*7.18.0*/ @@ -312,6 +315,11 @@ OPT_ENTRY( stream_weight, STREAM_WEIGHT, LNG, 0, LCUR OPT_ENTRY( tftp_no_options, TFTP_NO_OPTIONS, LNG, 0, LCURL_DEFAULT_VALUE ) #endif +#if LCURL_CURL_VER_GE(7,49,0) +OPT_ENTRY( tcp_fastopen, TCP_FASTOPEN, LNG, 0, LCURL_DEFAULT_VALUE ) +OPT_ENTRY( connect_to, CONNECT_TO, LST, 0, LCURL_DEFAULT_VALUE ) +#endif + #ifdef OPT_ENTRY_IS_NULL # undef OPT_ENTRY #endif