From efee2896384e5f18e3f05d3c065c165746f788bd Mon Sep 17 00:00:00 2001 From: sbwml Date: Tue, 2 Apr 2024 10:37:48 +0800 Subject: [PATCH] curl: add openssl 3.2+ quic support Signed-off-by: sbwml --- Config.in | 9 +++++++-- Makefile | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Config.in b/Config.in index 29865a8..3284ac6 100644 --- a/Config.in +++ b/Config.in @@ -111,8 +111,13 @@ config LIBCURL_NGHTTP3 default n config LIBCURL_NGTCP2 - bool "QUIC protocol" - depends on LIBCURL_OPENSSL + bool "QUIC protocol (ngtcp2)" + depends on LIBCURL_OPENSSL && LIBCURL_NGHTTP3 && !LIBCURL_OPENSSL_QUIC + default n + +config LIBCURL_OPENSSL_QUIC + bool "QUIC protocol (openssl quic)" + depends on LIBCURL_OPENSSL && LIBCURL_NGHTTP3 && !LIBCURL_NGTCP2 default n comment "Miscellaneous" diff --git a/Makefile b/Makefile index 186f2aa..dd1d956 100644 --- a/Makefile +++ b/Makefile @@ -60,6 +60,7 @@ PKG_CONFIG_DEPENDS:= \ CONFIG_LIBCURL_NGHTTP2 \ CONFIG_LIBCURL_NGHTTP3 \ CONFIG_LIBCURL_NGTCP2 \ + CONFIG_LIBCURL_OPENSSL_QUIC \ \ CONFIG_LIBCURL_COOKIES \ CONFIG_LIBCURL_CRYPTO_AUTH \ @@ -139,6 +140,7 @@ CONFIGURE_ARGS += \ $(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) \ + $(if $(CONFIG_LIBCURL_OPENSSL_QUIC),--with-openssl-quic,--without-openssl-quic) \ \ $(call autoconf_bool,CONFIG_LIBCURL_DICT,dict) \ $(call autoconf_bool,CONFIG_LIBCURL_FILE,file) \