mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-04 13:14:45 +02:00
tests: fix for fips-test -Wunused-variable on "rng"
This commit is contained in:
@@ -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.";
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user