300-fix-disable-crypto-auth.patch 808 B

12345678910111213141516171819202122232425
  1. --- a/lib/curl_ntlm_msgs.c
  2. +++ b/lib/curl_ntlm_msgs.c
  3. @@ -573,7 +573,7 @@ CURLcode Curl_sasl_create_ntlm_type3_mes
  4. else
  5. #endif
  6. -#if USE_NTRESPONSES && USE_NTLM2SESSION
  7. +#if USE_NTRESPONSES && USE_NTLM2SESSION && !defined(CURL_DISABLE_CRYPTO_AUTH)
  8. /* We don't support NTLM2 if we don't have USE_NTRESPONSES */
  9. if(ntlm->flags & NTLMFLAG_NEGOTIATE_NTLM2_KEY) {
  10. unsigned char ntbuffer[0x18];
  11. --- a/lib/vtls/vtls.c
  12. +++ b/lib/vtls/vtls.c
  13. @@ -921,9 +921,9 @@ CURLcode Curl_ssl_md5sum(unsigned char *
  14. unsigned char *md5sum, /* output */
  15. size_t md5len)
  16. {
  17. -#ifdef curlssl_md5sum
  18. +#if defined(curlssl_md5sum)
  19. curlssl_md5sum(tmp, tmplen, md5sum, md5len);
  20. -#else
  21. +#elif !defined(CURL_DISABLE_CRYPTO_AUTH)
  22. MD5_context *MD5pw;
  23. (void) md5len;