diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2022-10-12 12:12:08 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-11-08 10:06:12 +0100 |
commit | 1fdca35ddd9a28cfb43ee0571cf707c9844f4b6b (patch) | |
tree | dbe372336ec2ccdb39bb3cbf33b679960f73de05 /lib/easyoptions.c | |
parent | 3c16697ebd796f799227be293e8689aec5f8190d (diff) | |
download | curl-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/easyoptions.c')
-rw-r--r-- | lib/easyoptions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/easyoptions.c b/lib/easyoptions.c index e59b63af7..594150178 100644 --- a/lib/easyoptions.c +++ b/lib/easyoptions.c @@ -42,6 +42,7 @@ struct curl_easyoption Curl_easyopts[] = { {"CAINFO", CURLOPT_CAINFO, CURLOT_STRING, 0}, {"CAINFO_BLOB", CURLOPT_CAINFO_BLOB, CURLOT_BLOB, 0}, {"CAPATH", CURLOPT_CAPATH, CURLOT_STRING, 0}, + {"CA_CACHE_TIMEOUT", CURLOPT_CA_CACHE_TIMEOUT, CURLOT_LONG, 0}, {"CERTINFO", CURLOPT_CERTINFO, CURLOT_LONG, 0}, {"CHUNK_BGN_FUNCTION", CURLOPT_CHUNK_BGN_FUNCTION, CURLOT_FUNCTION, 0}, {"CHUNK_DATA", CURLOPT_CHUNK_DATA, CURLOT_CBPTR, 0}, @@ -368,6 +369,6 @@ struct curl_easyoption Curl_easyopts[] = { */ int Curl_easyopts_check(void) { - return ((CURLOPT_LASTENTRY%10000) != (320 + 1)); + return ((CURLOPT_LASTENTRY%10000) != (321 + 1)); } #endif |