mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[curl] Check CURL_CA_BUNDLE also for ftps
This commit is contained in:
parent
388db93244
commit
c4add15307
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user