From 68872813617aded584fc470c24f075e52d159121 Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 20 Oct 2023 16:27:54 -0700 Subject: [PATCH] Fix for `./configure --enable-pkcs7 --disable-rsa && make check`. --- tests/api.c | 2 ++ 1 file changed, 2 insertions(+) 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; }