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