From c4add153078da5914427970eea73bea195a5dbb6 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 8 Nov 2023 13:39:26 +0100 Subject: [PATCH] [curl] Check CURL_CA_BUNDLE also for ftps --- src/protocol/curl/ftp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/protocol/curl/ftp.c b/src/protocol/curl/ftp.c index e56e329a..0e8001be 100644 --- a/src/protocol/curl/ftp.c +++ b/src/protocol/curl/ftp.c @@ -460,6 +460,11 @@ do_ftpes(struct connection *conn) /* We activate SSL and we require it for control */ if (conn->uri->protocol == PROTOCOL_FTPES) { + char *bundle = getenv("CURL_CA_BUNDLE"); + + if (bundle) { + curl_easy_setopt(curl, CURLOPT_CAINFO, bundle); + } curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_CONTROL); } /// curl_easy_setopt(curl, CURLOPT_STDERR, stream);