← Commit list

d646d5a130

Daniel Stenberg
Daniel Stenberg
2025-10-31
SUCCESS Duration: 209s

Subject

openssl: fix the ocsp len arg to Curl_vtls_apple_verify

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vtls/openssl.c+4 -0
@@ -5129,6 +5129,10 @@ static CURLcode ossl_apple_verify(struct Curl_cfilter *cf,
if(conn_config->verifystatus && !octx->reused_session)
ocsp_len = (long)SSL_get_tlsext_status_ocsp_resp(octx->ssl, &ocsp_data);
+ /* SSL_get_tlsext_status_ocsp_resp() returns the length of the OCSP
+ response data or -1 if there is no OCSP response data. */
+ if(ocsp_len < 0)
+ ocsp_len = 0; /* no data available */
result = Curl_vtls_apple_verify(cf, data, peer, chain.num_certs,
ossl_chain_get_der, &chain,
ocsp_data, ocsp_len);