RSSyl: If given, set CURLOPT_CAINFO regardless of libcurl version.
[claws.git] / src / plugins / rssyl / libfeed / feed.c
index 1ddeb44445ede4a6ea9d2da6f363f820dd3002fb..b4db22e7789e617179d523dbb300e5139971125e 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);