mirror of
https://github.com/curl/curl.git
synced 2026-07-16 13:07:16 +03:00
gtls: skip session resumption when verifystatus is set
Resumed TLS sessions skip OCSP stapled-response verification. Force a
full handshake so verifystatus() runs.
Follow-up to 4bfd7a9615
Pointed out by ZeroPath
This commit is contained in:
parent
d8bad9926c
commit
9d1acd048c
1 changed files with 1 additions and 1 deletions
|
|
@ -1121,7 +1121,7 @@ CURLcode Curl_gtls_ctx_init(struct gtls_ctx *gctx,
|
|||
/* This might be a reconnect, so we check for a session ID in the cache
|
||||
to speed up things. We need to do this before constructing the gnutls
|
||||
session since we need to set flags depending on the kind of reuse. */
|
||||
if(conn_config->cache_session) {
|
||||
if(conn_config->cache_session && !conn_config->verifystatus) {
|
||||
result = Curl_ssl_scache_take(cf, data, peer->scache_key, &scs);
|
||||
if(result)
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue