commit 42f80d30efb16beb97ce1b3bd6625653e23e581d
parent ab24ae5d5022c744620046c1ab25c898d45ef507
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Thu, 18 Jun 2015 23:37:55 +0200
RSSyl: If given, set CURLOPT_CAINFO regardless of libcurl version.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/plugins/rssyl/libfeed/feed.c b/src/plugins/rssyl/libfeed/feed.c
@@ -306,11 +306,12 @@ guint feed_update(Feed *feed, time_t last_update)
if (feed->ssl_verify_peer == FALSE) {
curl_easy_setopt(eh, CURLOPT_SSL_VERIFYPEER, 0);
curl_easy_setopt(eh, CURLOPT_SSL_VERIFYHOST, 0);
- if (feed->cacert_file != NULL)
- curl_easy_setopt(eh, CURLOPT_CAINFO, feed->cacert_file);
}
#endif
+ if (feed->cacert_file != NULL)
+ curl_easy_setopt(eh, CURLOPT_CAINFO, feed->cacert_file);
+
if(feed->cookies_path != NULL)
curl_easy_setopt(eh, CURLOPT_COOKIEFILE, feed->cookies_path);