Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Nov 2018 22:53:27 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483950 - head/www/cpr/files
Message-ID:  <201811032253.wA3MrRtY062981@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Nov  3 22:53:27 2018
New Revision: 483950
URL: https://svnweb.freebsd.org/changeset/ports/483950

Log:
  Fix build with curl 7.62.0

Added:
  head/www/cpr/files/patch-cpr-error.cpp   (contents, props changed)

Added: head/www/cpr/files/patch-cpr-error.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/cpr/files/patch-cpr-error.cpp	Sat Nov  3 22:53:27 2018	(r483950)
@@ -0,0 +1,27 @@
+--- cpr/error.cpp.orig	2017-11-01 21:56:02 UTC
++++ cpr/error.cpp
+@@ -22,8 +22,10 @@ ErrorCode Error::getErrorCodeForCurlErro
+             return ErrorCode::OPERATION_TIMEDOUT;
+         case CURLE_SSL_CONNECT_ERROR:
+             return ErrorCode::SSL_CONNECT_ERROR;
++#if LIBCURL_VERSION_NUM < 0x073e00
+         case CURLE_PEER_FAILED_VERIFICATION:
+             return ErrorCode::SSL_REMOTE_CERTIFICATE_ERROR;
++#endif
+         case CURLE_GOT_NOTHING:
+             return ErrorCode::EMPTY_RESPONSE;
+         case CURLE_SSL_ENGINE_NOTFOUND:
+@@ -38,8 +40,13 @@ ErrorCode Error::getErrorCodeForCurlErro
+             return ErrorCode::SSL_LOCAL_CERTIFICATE_ERROR;
+         case CURLE_SSL_CIPHER:
+             return ErrorCode::GENERIC_SSL_ERROR;
++#if LIBCURL_VERSION_NUM >= 0x073e00
++        case CURLE_PEER_FAILED_VERIFICATION:
++            return ErrorCode::SSL_REMOTE_CERTIFICATE_ERROR;
++#else
+         case CURLE_SSL_CACERT:
+             return ErrorCode::SSL_CACERT_ERROR;
++#endif
+         case CURLE_USE_SSL_FAILED:
+             return ErrorCode::GENERIC_SSL_ERROR;
+         case CURLE_SSL_ENGINE_INITFAILED:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811032253.wA3MrRtY062981>