28 lines
726 B
Diff
28 lines
726 B
Diff
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;
|
|
|
|
|