From 69ac0da57033ed4b53db8e8a056d11fba26669ac Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sat, 3 Nov 2018 18:24:15 +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/agent/Core/SecurityUpdateChecker.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/agent/Core/SecurityUpdateChecker.h b/src/agent/Core/SecurityUpdateChecker.h index fd3483d596..373bcb43c6 100644 --- a/src/agent/Core/SecurityUpdateChecker.h +++ b/src/agent/Core/SecurityUpdateChecker.h @@ -256,9 +256,11 @@ class SecurityUpdateChecker { error.append(" for proxy address " + sessionState.config["proxy_url"].asString()); break; +#if LIBCURL_VERSION_NUM < 0x073e00 case CURLE_SSL_CACERT: // Peer certificate cannot be authenticated with given / known CA certificates. This would happen // for MITM but could also be a truststore issue. +#endif case CURLE_PEER_FAILED_VERIFICATION: // The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. error.append(" while connecting to " + sessionState.configRlz.url