From 4dfc05bf82a14093d9f0e6621b2ca93cc9ed2d74 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sat, 19 Aug 2023 12:12:33 +0800 Subject: [PATCH] curl: add http/3 & quic support --- Config.in | 8 ++++++++ Makefile | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Config.in b/Config.in index 24b7b96..9f8bcc5 100644 --- a/Config.in +++ b/Config.in @@ -105,6 +105,14 @@ config LIBCURL_NGHTTP2 bool "HTTP2 protocol" default y +config LIBCURL_NGHTTP3 + bool "HTTP3 protocol" + default n + +config LIBCURL_NGTCP2 + bool "QUIC protocol" + default n + comment "Miscellaneous" config LIBCURL_PROXY diff --git a/Makefile b/Makefile index d2ad559..bdb25cf 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,8 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_LIBCURL_TELNET \ CONFIG_LIBCURL_TFTP \ CONFIG_LIBCURL_NGHTTP2 \ + CONFIG_LIBCURL_NGHTTP3 \ + CONFIG_LIBCURL_NGTCP2 \ \ CONFIG_LIBCURL_COOKIES \ CONFIG_LIBCURL_CRYPTO_AUTH \ @@ -95,7 +97,7 @@ define Package/libcurl CATEGORY:=Libraries DEPENDS:= +LIBCURL_WOLFSSL:libwolfssl +LIBCURL_OPENSSL:libopenssl +LIBCURL_GNUTLS:libgnutls +LIBCURL_MBEDTLS:libmbedtls DEPENDS += +LIBCURL_ZLIB:zlib +LIBCURL_ZSTD:libzstd +LIBCURL_THREADED_RESOLVER:libpthread +LIBCURL_LDAP:libopenldap - DEPENDS += +LIBCURL_LIBIDN2:libidn2 +LIBCURL_SSH2:libssh2 +LIBCURL_NGHTTP2:libnghttp2 +ca-bundle + DEPENDS += +LIBCURL_LIBIDN2:libidn2 +LIBCURL_SSH2:libssh2 +LIBCURL_NGHTTP2:libnghttp2 +LIBCURL_NGHTTP3:libnghttp3 +LIBCURL_NGTCP2:libngtcp2 +ca-bundle TITLE:=A client-side URL transfer library MENU:=1 ABI_VERSION:=4 @@ -135,6 +137,8 @@ CONFIGURE_ARGS += \ $(if $(CONFIG_LIBCURL_ZLIB),--with-zlib="$(STAGING_DIR)/usr",--without-zlib) \ $(if $(CONFIG_LIBCURL_ZSTD),--with-zstd="$(STAGING_DIR)/usr",--without-zstd) \ $(if $(CONFIG_LIBCURL_NGHTTP2),--with-nghttp2="$(STAGING_DIR)/usr",--without-nghttp2) \ + $(if $(CONFIG_LIBCURL_NGHTTP3),--with-nghttp3="$(STAGING_DIR)/usr",--without-nghttp3) \ + $(if $(CONFIG_LIBCURL_NGTCP2),--with-ngtcp2="$(STAGING_DIR)/usr",--without-ngtcp2) \ \ $(call autoconf_bool,CONFIG_LIBCURL_DICT,dict) \ $(call autoconf_bool,CONFIG_LIBCURL_FILE,file) \