diff --git a/tests/api.c b/tests/api.c index a3759296c..ee98b50c7 100644 --- a/tests/api.c +++ b/tests/api.c @@ -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; }