]> granicus.if.org Git - curl/commitdiff
lib/config-win32.h: let SMB/SMBS be enabled with OpenSSL/NSS
authorViktor Szakats <vszakats@users.noreply.github.com>
Fri, 6 Oct 2017 07:37:42 +0000 (07:37 +0000)
committerViktor Szakats <vszakats@users.noreply.github.com>
Fri, 6 Oct 2017 07:37:42 +0000 (07:37 +0000)
The source code is now prepared to handle the case when both
Win32 Crypto and OpenSSL/NSS crypto backends are enabled
at the same time, making it now possible to enable `USE_WIN32_CRYPTO`
whenever the targeted Windows version supports it. Since this
matches the minimum Windows version supported by curl
(Windows 2000), enable it unconditionally for the Win32 platform.

This in turn enables SMB (and SMBS) protocol support whenever
Win32 Crypto is available, regardless of what other crypto backends
are enabled.

Ref: https://github.com/curl/curl/pull/1840#issuecomment-325682052

Closes https://github.com/curl/curl/pull/1943

lib/config-win32.h

index 00191fe4c8fdad1cd172382a111de22f163f2e92..309f701a94c519fcaba13ed59245bff01dd37786 100644 (file)
@@ -709,9 +709,7 @@ Vista
 #endif
 
 /* Define to use the Windows crypto library. */
-#if !defined(USE_OPENSSL) && !defined(USE_NSS)
 #define USE_WIN32_CRYPTO
-#endif
 
 /* ---------------------------------------------------------------- */
 /*                       ADDITIONAL DEFINITIONS                     */