From 961f9c4eccb1dc174db680142e384e820bfc66ec Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 15 Nov 2019 12:08:50 -0800 Subject: [PATCH] Cleanup for invalid use of `NO_SHA512` in api.c unit test. --- tests/api.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/api.c b/tests/api.c index b26a7437b..3d8b357cf 100644 --- a/tests/api.c +++ b/tests/api.c @@ -17254,8 +17254,8 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void) const char input[] = "Test data to encode."; int i; int testSz = 0; - #if !defined(NO_RSA) && (!defined(NO_AES) || (!defined(NO_SHA) ||\ - !defined(NO_SHA256) || !defined(NO_SHA512))) + #if !defined(NO_RSA) && (!defined(NO_AES) || (!defined(NO_SHA) || \ + !defined(NO_SHA256) || defined(WOLFSSL_SHA512))) byte* rsaCert = NULL; byte* rsaPrivKey = NULL; @@ -17270,7 +17270,7 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void) #endif #endif #if defined(HAVE_ECC) && (!defined(NO_AES) || (!defined(NO_SHA) ||\ - !defined(NO_SHA256) || !defined(NO_SHA512))) + !defined(NO_SHA256) || defined(WOLFSSL_SHA512))) byte* eccCert = NULL; byte* eccPrivKey = NULL; @@ -17291,7 +17291,7 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void) #endif #if !defined(NO_RSA) && (!defined(NO_AES) || (!defined(NO_SHA) ||\ - !defined(NO_SHA256) || !defined(NO_SHA512))) + !defined(NO_SHA256) || defined(WOLFSSL_SHA512))) /* RSA certs and keys. */ #if defined(USE_CERT_BUFFERS_1024) /* Allocate buffer space. */ @@ -17338,7 +17338,7 @@ static void test_wc_PKCS7_EncodeDecodeEnvelopedData (void) /* ECC */ #if defined(HAVE_ECC) && (!defined(NO_AES) || (!defined(NO_SHA) ||\ - !defined(NO_SHA256) || !defined(NO_SHA512))) + !defined(NO_SHA256) || defined(WOLFSSL_SHA512))) #ifdef USE_CERT_BUFFERS_256 AssertNotNull(eccCert =