RSSyl: If given, set CURLOPT_CAINFO regardless of libcurl version.
authorAndrej Kacian <ticho@claws-mail.org>
Thu, 18 Jun 2015 21:37:55 +0000 (23:37 +0200)
committerAndrej Kacian <ticho@claws-mail.org>
Thu, 18 Jun 2015 21:53:08 +0000 (23:53 +0200)
src/plugins/rssyl/libfeed/feed.c

index 1ddeb44..b4db22e 100644 (file)
@@ -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);