summarylogtreecommitdiffstats
path: root/curl-7.62.0.patch
diff options
context:
space:
mode:
authoreolianoe2018-11-11 13:10:47 +0100
committereolianoe2018-11-11 13:10:47 +0100
commit4272d8463c6d208478a6b5248b744f42f54a86c1 (patch)
treee6f908bee89d58117be783d78c53577389382a02 /curl-7.62.0.patch
parentea72e1f286944f151ad4967818d901f4de697fba (diff)
downloadaur-4272d8463c6d208478a6b5248b744f42f54a86c1.tar.gz
fix build with curl 7.62.0
Diffstat (limited to 'curl-7.62.0.patch')
-rw-r--r--curl-7.62.0.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/curl-7.62.0.patch b/curl-7.62.0.patch
new file mode 100644
index 000000000000..8636200819bf
--- /dev/null
+++ b/curl-7.62.0.patch
@@ -0,0 +1,26 @@
+From 44dfd2adfc4ec0e5bc57c57c1e701a25996c8221 Mon Sep 17 00:00:00 2001
+From: Po-Chuan Hsieh <sunpoet@sunpoet.net>
+Date: Sat, 3 Nov 2018 18:28:11 +0800
+Subject: [PATCH] Fix build with curl 7.62.0
+
+from CHANGES:
+ssl: deprecate CURLE_SSL_CACERT in favour of a unified error code
+Long live CURLE_PEER_FAILED_VERIFICATION
+---
+ daemon/http-tx-mgr.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/daemon/http-tx-mgr.c b/daemon/http-tx-mgr.c
+index 80d418ab8..4c6c65789 100644
+--- a/daemon/http-tx-mgr.c
++++ b/daemon/http-tx-mgr.c
+@@ -1138,7 +1138,9 @@ curl_error_to_http_task_error (int curl_error)
+ case CURLE_SSL_CONNECT_ERROR:
+ case CURLE_PEER_FAILED_VERIFICATION:
+ case CURLE_SSL_CERTPROBLEM:
++#if LIBCURL_VERSION_NUM < 0x073e00
+ case CURLE_SSL_CACERT:
++#endif
+ case CURLE_SSL_CACERT_BADFILE:
+ case CURLE_SSL_ISSUER_ERROR:
+ return HTTP_TASK_ERR_SSL;