build: make NTLM disabled by default

NTLM has weak security and does not work over HTTP/2 or HTTP/3.

Enable in cmake or configure to get support for it.
This commit is contained in:
Daniel Stenberg 2026-02-24 00:10:09 +01:00
parent af78b199b2
commit 0f313c49d4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 16 additions and 26 deletions

View file

@ -762,7 +762,7 @@
#endif
/* Single point where USE_NTLM definition might be defined */
#ifndef CURL_DISABLE_NTLM
#ifdef CURL_ENABLE_NTLM
# if (defined(USE_OPENSSL) && defined(HAVE_DES_ECB_ENCRYPT)) || \
defined(USE_GNUTLS) || \
(defined(USE_MBEDTLS) && defined(HAVE_MBEDTLS_DES_CRYPT_ECB)) || \