-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USE_WIN32_CRYPTO check removed to get USE_NTLM2SESSION set. #3704
Conversation
Thanks! |
Had to revert this due to #3708 |
So we need a check for #ifdef USE_SSL? I assumed it would be more difficult than just changing one #if |
Something like this maybe? lib/curl_ntlm_core.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/curl_ntlm_core.h b/lib/curl_ntlm_core.h
index 07ef5deae..cda6135bd 100644
--- a/lib/curl_ntlm_core.h
+++ b/lib/curl_ntlm_core.h
@@ -50,7 +50,9 @@
/* Define USE_NTLM2SESSION in order to make the type-3 message include the
NTLM2Session response message, requires USE_NTRESPONSES defined to 1 and a
Crypto engine that we have curl_ssl_md5sum() for. */
-#if defined(USE_NTRESPONSES) && !defined(USE_WIN32_CRYPTO)
+#if defined(USE_NTRESPONSES) && \
+ (!defined(USE_WIN32_CRYPTO) || \
+ (defined(USE_SSL) && !defined(CURL_DISABLE_CRYPTO_AUTH)))
#define USE_NTLM2SESSION
#endif |
Looks fine to me. @MonkeybreadSoftware will you amend the PR? |
change as discussed
I changed commit, so lets see what is says. |
That had a syntax error. Fix and try again? |
Well, tests failed due to #if line broken into three lines. |
Yes, splitting an |
but that is exactly what the change above shows!? |
Look again at your commit: d0a030e ... it has no backslashes on the end of the two lines that are continued. |
added backslashes
I was looking at Marcel's diff above. Now I committed the change with the missing backslashes. Sorry. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
and now? |
If it had, it would say so. It has just collected dust here... |
Thanks! |
To fix NTLM fails #3041