@@ -16876,6 +16876,7 @@ static int ProcessCSR_ex(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1687616876 word32 status_length, int idx)
1687716877{
1687816878 int ret = 0;
16879+ Signer* waivedTail = NULL;
1687916880 OcspRequest* request;
1688016881#if defined(HAVE_CERTIFICATE_STATUS_REQUEST)
1688116882 TLSX* ext = TLSX_Find(ssl->extensions, TLSX_STATUS_REQUEST);
@@ -16950,6 +16951,8 @@ static int ProcessCSR_ex(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1695016951 /* InitOcspResponse sets single and status to response struct. */
1695116952 InitOcspResponse(response, single, status, input +*inOutIdx, status_length,
1695216953 ssl->heap);
16954+ response->pendingCAs = SslWaivedCAsJoin(ssl, response->pendingCAs,
16955+ &waivedTail);
1695316956
1695416957 /* Extract producedDate */
1695516958 if (OcspResponseDecode(response, SSL_CM(ssl), ssl->heap, 1, 1) != 0) {
@@ -16965,6 +16968,8 @@ static int ProcessCSR_ex(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1696516968 FreeOcspResponse(response);
1696616969 InitOcspResponse(response, single, status, input + *inOutIdx,
1696716970 status_length, ssl->heap);
16971+ response->pendingCAs = SslWaivedCAsJoin(ssl, response->pendingCAs,
16972+ &waivedTail);
1696816973
1696916974 if (OcspResponseDecode(response, SSL_CM(ssl), ssl->heap, 0, 0) != 0)
1697016975 ret = BAD_CERTIFICATE_STATUS_ERROR;
@@ -16985,6 +16990,7 @@ static int ProcessCSR_ex(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1698516990 /* FreeOcspResponse frees status and single only if
1698616991 * single->isDynamic is set. */
1698716992 FreeOcspResponse(response);
16993+ SslWaivedCAsSplit(waivedTail);
1698816994
1698916995 WC_FREE_VAR_EX(status, ssl->heap, DYNAMIC_TYPE_OCSP_STATUS);
1699016996 WC_FREE_VAR_EX(single, ssl->heap, DYNAMIC_TYPE_OCSP_ENTRY);
0 commit comments