From: Daniel Stenberg Date: Fri, 9 Jun 2023 17:37:31 +0000 (+0200) Subject: examples/https.c: use CURLOPT_CA_CACHE_TIMEOUT X-Git-Tag: curl-8_2_0~114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=555bacd6d522bcca497573765056354f4d5d7b33;p=thirdparty%2Fcurl.git examples/https.c: use CURLOPT_CA_CACHE_TIMEOUT for demonstration purposes Closes #11290 --- diff --git a/docs/examples/https.c b/docs/examples/https.c index 26e72085b0..2a34e37d83 100644 --- a/docs/examples/https.c +++ b/docs/examples/https.c @@ -63,6 +63,9 @@ int main(void) curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L); #endif + /* cache the CA cert bundle in memory for a week */ + curl_easy_setopt(curl, CURLOPT_CA_CACHE_TIMEOUT, 604800L); + /* Perform the request, res will get the return code */ res = curl_easy_perform(curl); /* Check for errors */