curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: SSL session ID reuse - clarification needed

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 4 Jan 2020 03:28:26 -0500

On 1/3/2020 5:29 PM, Peter Wu via curl-library wrote:
> On Fri, Jan 03, 2020 at 09:21:04PM +0100, Daniel Jeliński via curl-library wrote:
>> Hi all,
>> I see that libcurl supports SSL session ID cache already, unless
>> CURLOPT_SSL_SESSIONID_CACHE is cleared. However, I'm having a hard
>> time finding information about the scope of session ID reuse:
>> - Are session IDs reused only within an easy handle or globally for
>> all handles within the application?
> It looks like it is reused within an easy handle only. The attached
> program was based on the output of:

Yes. Check out the share interface [1]. You can use
CURL_LOCK_DATA_SSL_SESSION [2] to share Session IDs.

[1]: https://curl.haxx.se/libcurl/c/libcurl-share.html
[2]: https://curl.haxx.se/libcurl/c/curl_share_setopt.html

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-01-04