From 15c5ac880e7ac66cead05aba7a54169874e1137e Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 12 Jan 2022 14:40:46 -0800 Subject: [PATCH] PKCS7 Test Output When running the test with PKCS7 enabled, there's an additional option that will save to disk the generated PKCS7 blobs for by-hand review. (PKCS7_OUTPUT_TEST_BUNDLES) Fixed a couple compile errors that were missed with that option enabled. --- wolfcrypt/test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index cd96e0b73..bf7db60b1 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -33702,6 +33702,7 @@ static int pkcs7signed_run_vectors( file = XFOPEN(testVectors[i].outFileName, "wb"); if (!file) { ERROR_OUT(-12523, out); + } ret = (int)XFWRITE(out, 1, encodedSz, file); XFCLOSE(file); if (ret != (int)encodedSz) @@ -34202,7 +34203,7 @@ static int pkcs7signed_run_SingleShotVectors( XFCLOSE(file); file = NULL; if (ret != (int)encodedSz) - ERROR_OUT(-12553); + ERROR_OUT(-12553, out); #endif /* PKCS7_OUTPUT_TEST_BUNDLES */ wc_PKCS7_Free(pkcs7);