summaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2022-10-12 12:12:08 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-11-08 10:06:12 +0100
commit1fdca35ddd9a28cfb43ee0571cf707c9844f4b6b (patch)
treedbe372336ec2ccdb39bb3cbf33b679960f73de05 /lib/url.c
parent3c16697ebd796f799227be293e8689aec5f8190d (diff)
downloadcurl-1fdca35ddd9a28cfb43ee0571cf707c9844f4b6b.tar.gz
curl.h: add CURLOPT_CA_CACHE_TIMEOUT option
Adds a new option to control the maximum time that a cached certificate store may be retained for. Currently only the OpenSSL backend implements support for caching certificate stores. Closes #9620
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 4b26f747b..6774b6b85 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -539,6 +539,8 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data)
/* Set the default size of the SSL session ID cache */
set->general_ssl.max_ssl_sessions = 5;
+ /* Timeout every 24 hours by default */
+ set->general_ssl.ca_cache_timeout = 24 * 60 * 60;
set->proxyport = 0;
set->proxytype = CURLPROXY_HTTP; /* defaults to HTTP proxy */