[OpenWrt-Devel] [PATCH 2/3] curl: add config option for NTLM support

Dirk Feytons dirk.feytons at gmail.com
Thu Apr 7 04:21:49 EDT 2016


Signed-off-by: Dirk Feytons <dirk.feytons at gmail.com>
---
 package/network/utils/curl/Config.in |    5 +++++
 package/network/utils/curl/Makefile  |    4 +++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/network/utils/curl/Config.in b/package/network/utils/curl/Config.in
index f41307a..14d2047 100644
--- a/package/network/utils/curl/Config.in
+++ b/package/network/utils/curl/Config.in
@@ -154,4 +154,9 @@ config LIBCURL_VERBOSE
 	bool "Enable verbose error strings"
 	default n
 
+config LIBCURL_NTLM
+	bool "Enable NTLM support"
+	depends LIBCURL_CRYPTO_AUTH && !LIBCURL_NOSSL
+	default n
+
 endif
diff --git a/package/network/utils/curl/Makefile b/package/network/utils/curl/Makefile
index eada1aa..319c0b7 100644
--- a/package/network/utils/curl/Makefile
+++ b/package/network/utils/curl/Makefile
@@ -65,7 +65,8 @@ PKG_CONFIG_DEPENDS:= \
   CONFIG_LIBCURL_THREADED_RESOLVER \
   CONFIG_LIBCURL_TLS_SRP \
   CONFIG_LIBCURL_UNIX_SOCKETS \
-  CONFIG_LIBCURL_VERBOSE
+  CONFIG_LIBCURL_VERBOSE \
+  CONFIG_LIBCURL_NTLM
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -99,6 +100,7 @@ define Package/libcurl/config
 endef
 
 TARGET_CFLAGS += $(FPIC)
+TARGET_CPPFLAGS += $(if $(CONFIG_LIBCURL_NTLM),,-DCURL_DISABLE_NTLM)
 
 CONFIGURE_ARGS += \
 	--disable-debug \
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list