Skip to content

Commit

Permalink
Merge pull request #8115 from miyazakh/ocsp_tls13_client
Browse files Browse the repository at this point in the history
Check Intermediate cert OCSP when using tls1.3 for client side
  • Loading branch information
SparkiDev authored Oct 31, 2024
2 parents 4b8c9bb + 79a9e0a commit 89d2964
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -15232,7 +15232,13 @@ int ProcessPeerCerts(WOLFSSL* ssl, byte* input, word32* inOutIdx,
else /* skips OCSP and force CRL check */
#endif /* HAVE_CERTIFICATE_STATUS_REQUEST_V2 */
#if defined(HAVE_CERTIFICATE_STATUS_REQUEST)
if (IsAtLeastTLSv1_3(ssl->version)) {
if (IsAtLeastTLSv1_3(ssl->version) &&
ssl->options.side == WOLFSSL_CLIENT_END &&
ssl->status_request) {
/* We check CSR in Certificate message sent from
* Server. Server side will check client
* certificates by traditional OCSP if enabled
*/
ret = TLSX_CSR_InitRequest_ex(ssl->extensions,
args->dCert, ssl->heap, args->certIdx);
}
Expand Down

0 comments on commit 89d2964

Please sign in to comment.