diff options
Diffstat (limited to 'libraries/libetpan/curl-7.62.0.patch')
-rw-r--r-- | libraries/libetpan/curl-7.62.0.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libraries/libetpan/curl-7.62.0.patch b/libraries/libetpan/curl-7.62.0.patch new file mode 100644 index 0000000000..1685ae7289 --- /dev/null +++ b/libraries/libetpan/curl-7.62.0.patch @@ -0,0 +1,26 @@ +From 945f3702182a7b7920c440512c15cce23ad1bacd Mon Sep 17 00:00:00 2001 +From: Po-Chuan Hsieh <sunpoet@sunpoet.net> +Date: Sun, 4 Nov 2018 01:52:05 +0800 +Subject: [PATCH] Fix build with curl 7.62.0 (#311) + +from CHANGES: +ssl: deprecate CURLE_SSL_CACERT in favour of a unified error code +Long live CURLE_PEER_FAILED_VERIFICATION +--- + src/low-level/feed/newsfeed.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/low-level/feed/newsfeed.c b/src/low-level/feed/newsfeed.c +index 97e292b7..13472801 100644 +--- a/src/low-level/feed/newsfeed.c ++++ b/src/low-level/feed/newsfeed.c +@@ -535,7 +535,9 @@ static int curl_error_convert(int curl_res) + case CURLE_SSL_ENGINE_SETFAILED: + case CURLE_SSL_CERTPROBLEM: + case CURLE_SSL_CIPHER: ++#if LIBCURL_VERSION_NUM < 0x073e00 + case CURLE_SSL_CACERT: ++#endif + case CURLE_FTP_SSL_FAILED: + case CURLE_SSL_ENGINE_INITFAILED: + return NEWSFEED_ERROR_SSL; |