1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00

[curl] Check CURL_CA_BUNDLE also for ftps

This commit is contained in:
Witold Filipczyk 2023-11-08 13:39:26 +01:00
parent 388db93244
commit c4add15307

View File

@ -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);