curl: add new option HTTP AUTH
authorFlorian Eckert <redacted>
Tue, 18 Mar 2025 08:48:24 +0000 (09:48 +0100)
committerFlorian Eckert <redacted>
Thu, 20 Mar 2025 07:37:57 +0000 (08:37 +0100)
The '--enable-http-auth' compile option in cURL is used to enable support
for HTTP authentication methods. This option allows cURL to handle various
authentication schemes, such as Basic, Digest, NTLM, and others, which
are commonly used in HTTP requests to secure access to resources.

This cURL compile option is default disabled. This should at least be enabled
as a compile option in OpenWrt so that it can be switched on if needed.

Signed-off-by: Florian Eckert <redacted>
net/curl/Config.in
net/curl/Makefile

index 04f03a5bd2e476a4bccb7d9391cea2e86e150362..e07c06291ca42a1d2fdf5cb40cddfb40bf1d7770 100644 (file)
@@ -175,4 +175,7 @@ config LIBCURL_NTLM
        depends on LIBCURL_CRYPTO_AUTH && !LIBCURL_NOSSL
        default n
 
+config LIBCURL_HTTP_AUTH
+       bool "Enable HTTP authentication support"
+       default n
 endif
index 3c4e3ef8d14e9660f054c469484a9f7e1cde10ad..1bf9b6e5fba0f4096cc5abeef4b6e288f9d887ad 100644 (file)
@@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/nls.mk
 
 PKG_NAME:=curl
 PKG_VERSION:=8.12.1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/curl/curl/releases/download/curl-$(subst .,_,$(PKG_VERSION))/ \
@@ -62,6 +62,7 @@ PKG_CONFIG_DEPENDS:= \
   \
   CONFIG_LIBCURL_COOKIES \
   CONFIG_LIBCURL_CRYPTO_AUTH \
+  CONFIG_LIBCURL_HTTP_AUTH \
   CONFIG_LIBCURL_LIBCURL_OPTION \
   CONFIG_LIBCURL_PROXY \
   CONFIG_LIBCURL_THREADED_RESOLVER \
@@ -158,6 +159,7 @@ CONFIGURE_ARGS += \
        \
        $(call autoconf_bool,CONFIG_LIBCURL_COOKIES,cookies) \
        $(call autoconf_bool,CONFIG_LIBCURL_CRYPTO_AUTH,crypto-auth) \
+       $(call autoconf_bool,CONFIG_LIBCURL_HTTP_AUTH,http-auth) \
        $(call autoconf_bool,CONFIG_LIBCURL_LIBCURL_OPTION,libcurl-option) \
        $(call autoconf_bool,CONFIG_LIBCURL_PROXY,proxy) \
        $(call autoconf_bool,CONFIG_LIBCURL_THREADED_RESOLVER,threaded-resolver) \
git clone https://git.99rst.org/PROJECT