summaryrefslogtreecommitdiff
path: root/lib/version.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2020-08-03 10:33:17 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2020-08-29 10:08:32 +0200
commitf504f18641ebedde8e8b3805472267efa9a9b528 (patch)
tree71c5071e5f6682b37a30f17fe1e702d7fbe0df36 /lib/version.c
parent5cfb807bba0e767faed76681c0d414a346d4c43c (diff)
downloadgnurl-f504f18641ebedde8e8b3805472267efa9a9b528.tar.gz
gnurl-f504f18641ebedde8e8b3805472267efa9a9b528.tar.bz2
gnurl-f504f18641ebedde8e8b3805472267efa9a9b528.zip
ntlm: fix condition for curl_ntlm_core usage
`USE_WINDOWS_SSPI` without `USE_WIN32_CRYPTO` but with any other DES backend is fine, but was excluded before. This also fixes test 1013 as the condition for SMB support in configure.ac didn't match the condition in the source code. Now it does. Fixes https://github.com/curl/curl/issues/1262 Closes https://github.com/curl/curl/pull/5771
Diffstat (limited to 'lib/version.c')
-rw-r--r--lib/version.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/version.c b/lib/version.c
index 4f6dda24f..0abcb0dec 100644
--- a/lib/version.c
+++ b/lib/version.c
@@ -319,9 +319,8 @@ static const char * const protocols[] = {
#ifdef USE_SSH
"sftp",
#endif
-#if !defined(CURL_DISABLE_SMB) && defined(USE_NTLM) && \
- (CURL_SIZEOF_CURL_OFF_T > 4) && \
- (!defined(USE_WINDOWS_SSPI) || defined(USE_WIN32_CRYPTO))
+#if !defined(CURL_DISABLE_SMB) && defined(USE_CURL_NTLM_CORE) && \
+ (CURL_SIZEOF_CURL_OFF_T > 4)
"smb",
# ifdef USE_SSL
"smbs",