mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix build with curl 7.62.0
This commit is contained in:
parent
03bf7f7434
commit
6cbb44e8cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=483945
1 changed files with 28 additions and 0 deletions
28
ftp/rubygem-curb/files/patch-ext-curb_errors.c
Normal file
28
ftp/rubygem-curb/files/patch-ext-curb_errors.c
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
--- ext/curb_errors.c.orig 2018-11-03 08:38:15 UTC
|
||||||
|
+++ ext/curb_errors.c
|
||||||
|
@@ -307,9 +307,11 @@ VALUE rb_curl_easy_error(CURLcode code)
|
||||||
|
exclz = eCurlErrObsolete;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
|
+#if LIBCURL_VERSION_NUM < 0x073e00
|
||||||
|
case CURLE_SSL_PEER_CERTIFICATE: /* 51 - peer's certificate wasn't ok */
|
||||||
|
exclz = eCurlErrSSLPeerCertificate;
|
||||||
|
break;
|
||||||
|
+#endif
|
||||||
|
case CURLE_GOT_NOTHING: /* 52 - when this is a specific error */
|
||||||
|
exclz = eCurlErrGotNothing;
|
||||||
|
break;
|
||||||
|
@@ -334,8 +336,13 @@ VALUE rb_curl_easy_error(CURLcode code)
|
||||||
|
case CURLE_SSL_CIPHER: /* 59 - couldn't use specified cipher */
|
||||||
|
exclz = eCurlErrSSLCipher;
|
||||||
|
break;
|
||||||
|
+#if LIBCURL_VERSION_NUM >= 0x073e00
|
||||||
|
+ case CURLE_PEER_FAILED_VERIFICATION: /* 60 - problem with the CA cert (path?) */
|
||||||
|
+ exclz = eCurlErrSSLPeerCertificate;
|
||||||
|
+#else
|
||||||
|
case CURLE_SSL_CACERT: /* 60 - problem with the CA cert (path?) */
|
||||||
|
exclz = eCurlErrSSLCACertificate;
|
||||||
|
+#endif
|
||||||
|
break;
|
||||||
|
case CURLE_BAD_CONTENT_ENCODING: /* 61 - Unrecognized transfer encoding */
|
||||||
|
exclz = eCurlErrBadContentEncoding;
|
Loading…
Add table
Reference in a new issue