From 0e2749eeb419fb39bc6c74a8854820fa27aa8807 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 29 Jun 2023 09:34:41 -0700 Subject: [PATCH] adjust test case for asn=original --- tests/api.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/api.c b/tests/api.c index e62752e96..96f0f7174 100644 --- a/tests/api.c +++ b/tests/api.c @@ -25656,9 +25656,15 @@ static int test_wc_PKCS7_EncodeDecodeEnvelopedData(void) tempWrd32 = pkcs7->singleCertSz; pkcs7->singleCertSz = 0; } + #if defined(WOLFSSL_ASN_TEMPLATE) ExpectIntEQ(wc_PKCS7_DecodeEnvelopedData(pkcs7, output, (word32)sizeof(output), decoded, (word32)sizeof(decoded)), BUFFER_E); + #else + ExpectIntEQ(wc_PKCS7_DecodeEnvelopedData(pkcs7, output, + (word32)sizeof(output), decoded, (word32)sizeof(decoded)), + ASN_PARSE_E); + #endif if (pkcs7 != NULL) { pkcs7->singleCertSz = tempWrd32;