Fix for ./configure --enable-pkcs7 --disable-rsa && make check.

This commit is contained in:
David Garske
2023-10-20 16:27:54 -07:00
parent a3bf7a66a4
commit 6887281361

View File

@@ -27644,6 +27644,7 @@ static int test_wc_PKCS7_EncodeDecodeEnvelopedData(void)
tmpBytePtr = pkcs7->singleCert;
pkcs7->singleCert = NULL;
}
#ifndef NO_RSA
#if defined(NO_PKCS7_STREAM)
/* when none streaming mode is used and PKCS7 is in bad state buffer error
* is returned from kari parse which gets set to bad func arg */
@@ -27655,6 +27656,7 @@ static int test_wc_PKCS7_EncodeDecodeEnvelopedData(void)
(word32)sizeof(output), decoded, (word32)sizeof(decoded)),
ASN_PARSE_E);
#endif
#endif /* !NO_RSA */
if (pkcs7 != NULL) {
pkcs7->singleCert = tmpBytePtr;
}