Merge pull request #8055 from rizlik/ocsp-cb-ret-propagate

ocsp: propagate ocsp cb return error
This commit is contained in:
Daniel Pouzzner
2024-10-15 15:38:09 -05:00
committed by GitHub
2 changed files with 5 additions and 2 deletions

View File

@ -536,6 +536,9 @@ int CheckOcspRequest(WOLFSSL_OCSP* ocsp, OcspRequest* ocspRequest,
if (responseSz == WC_NO_ERR_TRACE(WOLFSSL_CBIO_ERR_WANT_READ)) {
ret = OCSP_WANT_READ;
}
else if (responseSz == WC_NO_ERR_TRACE(WOLFSSL_CBIO_ERR_TIMEOUT)){
ret = HTTP_TIMEOUT;
}
XFREE(request, ocsp->cm->heap, DYNAMIC_TYPE_OCSP);

View File

@ -92291,7 +92291,7 @@ static int test_override_alt_cert_chain_ocsp_cb(void* ioCtx, const char* url,
(void)request;
(void)requestSz;
(void)response;
return -1;
return WOLFSSL_CBIO_ERR_GENERAL;
}
static int test_override_alt_cert_chain_client_ctx_ready(WOLFSSL_CTX* ctx)
@ -96798,7 +96798,7 @@ static int test_ocsp_callback_fails_cb(void* ctx, const char* url, int urlSz,
(void)ocspReqBuf;
(void)ocspReqSz;
(void)ocspRespBuf;
return -1;
return WOLFSSL_CBIO_ERR_GENERAL;
}
static int test_ocsp_callback_fails(void)
{