curl: update curl to version 7.43.0
[openwrt/staging/wigyori.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 @@ -569,7 +569,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 @@ -852,9 +852,9 @@ CURLcode Curl_ssl_md5sum(unsigned char *
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;