mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Force SSL session caching on, Ubuntu seems to have it off by default
This commit is contained in:
parent
5efc6407d3
commit
70b6ca4376
@ -646,6 +646,9 @@ static CURLcode fetch_curl_set_options(struct curl_fetch_info *f)
|
|||||||
SETOPT(CURLOPT_PROXY, NULL);
|
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)) {
|
if (urldb_get_cert_permissions(f->url)) {
|
||||||
/* Disable certificate verification */
|
/* Disable certificate verification */
|
||||||
SETOPT(CURLOPT_SSL_VERIFYPEER, 0L);
|
SETOPT(CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
Loading…
Reference in New Issue
Block a user