diff options
author | Marc Hoersken <info@marc-hoersken.de> | 2021-03-06 15:52:09 +0100 |
---|---|---|
committer | Marc Hoersken <info@marc-hoersken.de> | 2021-03-15 17:01:30 +0100 |
commit | cc615f48e712202fc26297bc7597e3a1e9188aac (patch) | |
tree | 68414bd77b161ba574aa2c2a34acc6991fc10813 /lib | |
parent | 71529574215190baa15e49e0f825aed79e6566d4 (diff) | |
download | curl-cc615f48e712202fc26297bc7597e3a1e9188aac.tar.gz |
config: fix building SMB with configure using Win32 Crypto
Align conditions for NTLM features between CMake and configure
builds by differentiating between USE_NTLM and USE_CURL_NTLM_CORE,
just like curl_setup.h does internally to detect support of:
- USE_NTLM: required for NTLM crypto authentication feature
- USE_CURL_NTLM_CORE: required for SMB protocol
Implement USE_WIN32_CRYPTO detection by checking for Crypt functions
in wincrypt.h which are not available in the Windows App environment.
Link advapi32 and crypt32 for Crypto API and Schannel SSL backend.
Fix condition of Schannel SSL backend in CMake build accordingly.
Reviewed-by: Marcel Raad
Closes #6277
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_config.h.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_config.h.cmake b/lib/curl_config.h.cmake index 8ced43672..01c4ded1f 100644 --- a/lib/curl_config.h.cmake +++ b/lib/curl_config.h.cmake @@ -98,7 +98,7 @@ #endif /* Allow SMB to work on Windows */ -#cmakedefine USE_WIN32_CRYPTO +#cmakedefine USE_WIN32_CRYPTO 1 /* Use Windows LDAP implementation */ #cmakedefine USE_WIN32_LDAP 1 |