Defined both CURL_DISABLE_CRYPTO_AUTH and USE_NTLM.
I expected the following
A successful compilation. Instead I got an error saying "serverdata" was undefined (because it was being "defined" out).
curl/libcurl version
7.54.0
operating system
Windows, Visual Studio 2017.
Solution:
In curl_sasl.c, around line 417-ish (in Curl_sasl_continue() ), move char *serverdata; outside of the the #if !defined(CURL_DISABLE_CRYPTO_AUTH) define.
Ah yes, thanks! A third alternative would be to declare serverdata in every instance. I'll do the first version since it makes the code nicer than the second, and the "unused variable" warning it may create for some combination of disabled features is still harmless.
I did this
Defined both CURL_DISABLE_CRYPTO_AUTH and USE_NTLM.
I expected the following
A successful compilation. Instead I got an error saying "serverdata" was undefined (because it was being "defined" out).
curl/libcurl version
7.54.0
operating system
Windows, Visual Studio 2017.
Solution:
In curl_sasl.c, around line 417-ish (in Curl_sasl_continue() ), move
char *serverdata;
outside of the the#if !defined(CURL_DISABLE_CRYPTO_AUTH)
define.Or, alternatively, replace this:
With this:
The text was updated successfully, but these errors were encountered: