edbrowse: fix build with curl - 7.62.0
This commit is contained in:
parent
0192677a0a
commit
9c41d17260
1 changed files with 27 additions and 0 deletions
27
srcpkgs/edbrowse/patches/curl-7.62.patch
Normal file
27
srcpkgs/edbrowse/patches/curl-7.62.patch
Normal file
|
@ -0,0 +1,27 @@
|
|||
From 5d2b9e21fdf019f461ebe62738d615428d5db963 Mon Sep 17 00:00:00 2001
|
||||
From: Po-Chuan Hsieh <sunpoet@sunpoet.net>
|
||||
Date: Sat, 3 Nov 2018 18:11:14 +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
|
||||
---
|
||||
src/http.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/src/http.c b/src/http.c
|
||||
index 56eebab..ccafc8f 100644
|
||||
--- src/http.c
|
||||
+++ src/http.c
|
||||
@@ -1557,7 +1557,9 @@ void ebcurl_setError(CURLcode curlret, const char *url, int action,
|
||||
break;
|
||||
|
||||
case CURLE_PEER_FAILED_VERIFICATION:
|
||||
+#if LIBCURL_VERSION_NUM < 0x073e00
|
||||
case CURLE_SSL_CACERT:
|
||||
+#endif
|
||||
(*fn) (MSG_NoCertify, host);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in a new issue