tests: fix for fips-test -Wunused-variable on "rng"

This commit is contained in:
Daniel Pouzzner
2020-11-09 11:54:49 -06:00
parent 22bcceb2d3
commit 4b1a779fcc
2 changed files with 4 additions and 0 deletions

View File

@@ -23211,7 +23211,9 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void)
{ {
#if defined(HAVE_PKCS7) #if defined(HAVE_PKCS7)
PKCS7* pkcs7; PKCS7* pkcs7;
#ifdef ECC_TIMING_RESISTANT
WC_RNG rng; WC_RNG rng;
#endif
word32 tempWrd32 = 0; word32 tempWrd32 = 0;
byte* tmpBytePtr = NULL; byte* tmpBytePtr = NULL;
const char input[] = "Test data to encode."; const char input[] = "Test data to encode.";

View File

@@ -26224,7 +26224,9 @@ static int pkcs7enveloped_run_vectors(byte* rsaCert, word32 rsaCertSz,
byte *enveloped; byte *enveloped;
byte *decoded; byte *decoded;
PKCS7* pkcs7; PKCS7* pkcs7;
#ifdef ECC_TIMING_RESISTANT
WC_RNG rng; WC_RNG rng;
#endif
#ifdef PKCS7_OUTPUT_TEST_BUNDLES #ifdef PKCS7_OUTPUT_TEST_BUNDLES
XFILE pkcs7File; XFILE pkcs7File;
#endif #endif