Force SSL session caching on, Ubuntu seems to have it off by default

This commit is contained in:
Daniel Silverstone 2018-04-22 13:04:21 +01:00
parent 5efc6407d3
commit 70b6ca4376

View File

@ -646,6 +646,9 @@ static CURLcode fetch_curl_set_options(struct curl_fetch_info *f)
SETOPT(CURLOPT_PROXY, NULL);
}
/* Force-enable SSL session ID caching, as some distros are odd. */
SETOPT(CURLOPT_SSL_SESSIONID_CACHE, 1);
if (urldb_get_cert_permissions(f->url)) {
/* Disable certificate verification */
SETOPT(CURLOPT_SSL_VERIFYPEER, 0L);