]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
define: remove CURL_DISABLE_NTLM ifdefs 6809/head
authorDaniel Stenberg <daniel@haxx.se>
Sun, 28 Mar 2021 21:12:23 +0000 (23:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 29 Mar 2021 12:43:54 +0000 (14:43 +0200)
It was never defined anywhere. Fixed disable-scan (test 1165) to also
scan headers, which found this issue.

Closes #6809

lib/config-vxworks.h
lib/curl_setup.h
packages/vms/generate_config_vms_h_curl.com
tests/disable-scan.pl

index eaeb019134556d257d156388f2a1a65f196a32f8..f8119528537a56f245e8e4eb3564fc55b029411e 100644 (file)
@@ -56,9 +56,6 @@
 /* to disable LDAPS */
 #define CURL_DISABLE_LDAPS 1
 
-/* to disable NTLM authentication */
-#define CURL_DISABLE_NTLM 1
-
 /* to disable proxies */
 /* #undef CURL_DISABLE_PROXY */
 
index 30cc8d15e636e058ae1abd2af43c3e6a389036e9..cf1c26a14e398dc9175c5b8bfd77b990bafdc2d4 100644 (file)
@@ -641,7 +641,7 @@ int netware_init(void);
 #endif
 
 /* Single point where USE_NTLM definition might be defined */
-#if !defined(CURL_DISABLE_NTLM) && !defined(CURL_DISABLE_CRYPTO_AUTH)
+#ifndef CURL_DISABLE_CRYPTO_AUTH
 #if defined(USE_OPENSSL) || defined(USE_MBEDTLS) ||                     \
   defined(USE_GNUTLS) || defined(USE_NSS) || defined(USE_SECTRANSP) ||  \
   defined(USE_OS400CRYPTO) || defined(USE_WIN32_CRYPTO) ||              \
index 07d3fb0890429c863fcae98475edc710ba9e1233..fbcb4d0dd0aeeee133c4e5fb9304b02bfbe6733b 100644 (file)
@@ -278,15 +278,9 @@ $write cvh "#ifdef CURL_DISABLE_LIBCURL_OPTION"
 $write cvh "#undef CURL_DISABLE_LIBCURL_OPTION"
 $write cvh "#endif"
 $write cvh "#ifndef __VAX"
-$write cvh "#ifdef CURL_DISABLE_NTLM"
-$write cvh "#undef CURL_DISABLE_NTLM"
-$write cvh "#endif"
 $write cvh "#else"
 $! NTLM needs long long or int64 support, missing from DECC C.
 $write cvh "#ifdef __DECC
-$write cvh "#ifndef CURL_DISABLE_NTLM"
-$write cvh "#define CURL_DISABLE_NTLM 1"
-$write cvh "#endif"
 $write cvh "#endif"
 $write cvh "#endif"
 $write cvh "#ifdef CURL_DISABLE_POP3"
index 16ffd1d8f937b89dfd0cc2741b813a3038ca212b..64a181aca18eb401e0be608302ba1dbf9471c43b 100755 (executable)
@@ -6,7 +6,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 2010 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 2010 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -62,7 +62,7 @@ sub scan_file {
 sub scan_dir {
     my ($dir)=@_;
     opendir(my $dh, $dir) || die "Can't opendir $dir: $!";
-    my @cfiles = grep { /\.c\z/ && -f "$dir/$_" } readdir($dh);
+    my @cfiles = grep { /\.[ch]\z/ && -f "$dir/$_" } readdir($dh);
     closedir $dh;
     for my $f (sort @cfiles) {
         scan_file("$dir/$f");