diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-11-04 06:44:36 +0800 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2018-11-04 06:44:36 +0800 |
commit | 6cbb44e8cd1539f7655e25c5cf6fa99b1dcf86fc (patch) | |
tree | 05794c9954312832bbedef4f6911de9150694298 /ftp | |
parent | 03bf7f7434b8fee5818789e33dbdc79e760049c0 (diff) | |
download | freebsd-ports-gnome-6cbb44e8cd1539f7655e25c5cf6fa99b1dcf86fc.tar.gz freebsd-ports-gnome-6cbb44e8cd1539f7655e25c5cf6fa99b1dcf86fc.tar.zst freebsd-ports-gnome-6cbb44e8cd1539f7655e25c5cf6fa99b1dcf86fc.zip |
Fix build with curl 7.62.0
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/rubygem-curb/files/patch-ext-curb_errors.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ftp/rubygem-curb/files/patch-ext-curb_errors.c b/ftp/rubygem-curb/files/patch-ext-curb_errors.c new file mode 100644 index 000000000000..ed9580ba75f2 --- /dev/null +++ b/ftp/rubygem-curb/files/patch-ext-curb_errors.c @@ -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; |