update macro guard on SHA256 transform call

This commit is contained in:
JacobBarthelmeh
2021-09-17 15:06:13 -07:00
parent ffa13f314b
commit f447e4c1fa
2 changed files with 4 additions and 2 deletions

View File

@ -18134,7 +18134,8 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out,
#if defined(OPENSSL_EXTRA) #if defined(OPENSSL_EXTRA)
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \ #if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) && \
!defined(WOLFSSL_DEVCRYPTO_HASH) && !defined(WOLFSSL_AFALG_HASH)
/* Apply SHA256 transformation to the data */ /* Apply SHA256 transformation to the data */
int wolfSSL_SHA256_Transform(WOLFSSL_SHA256_CTX* sha256, int wolfSSL_SHA256_Transform(WOLFSSL_SHA256_CTX* sha256,
const unsigned char* data) const unsigned char* data)

View File

@ -39005,7 +39005,8 @@ static void test_wolfSSL_SHA256_Transform(void)
{ {
#if defined(OPENSSL_EXTRA) && !defined(NO_SHA256) #if defined(OPENSSL_EXTRA) && !defined(NO_SHA256)
#if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \ #if !defined(HAVE_SELFTEST) && (!defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION > 2))) && \
!defined(WOLFSSL_DEVCRYPTO_HASH) && !defined(WOLFSSL_AFALG_HASH)
byte input1[] = ""; byte input1[] = "";
byte input2[] = "abc"; byte input2[] = "abc";
byte local[WC_SHA256_BLOCK_SIZE]; byte local[WC_SHA256_BLOCK_SIZE];