]> git.ipfire.org Git - thirdparty/curl.git/commit
ssl-session-cache: check use on config and availability
authorStefan Eissing <stefan@eissing.org>
Mon, 27 Oct 2025 09:33:41 +0000 (10:33 +0100)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 29 Oct 2025 07:07:59 +0000 (03:07 -0400)
commitc82a70628dea815364ed41f30e2f6b8eb87f9fdd
tree0479497952dec0c13d53bbdbb7d1b0e34299f8d2
parent0ba006601ffa813388bf4b4f01a181767fbdad15
ssl-session-cache: check use on config and availability

Replace the check if a ssl session cache is configured with
a function checking if it is configured *and* if an ssl session
cache is available.

During normal operations, a session cache is always there, however
for "connect-only" transfers this might not be the case. When such
transfers receive new sessions/tickets, they need to silently
discard those and not fail.

Reported-by: Marc Aldorasi
Fixes https://github.com/curl/curl/issues/18983
Closes https://github.com/curl/curl/pull/19251
lib/vquic/curl_ngtcp2.c
lib/vtls/gtls.c
lib/vtls/mbedtls.c
lib/vtls/openssl.c
lib/vtls/schannel.c
lib/vtls/vtls_scache.c
lib/vtls/vtls_scache.h
lib/vtls/wolfssl.c