Skip to content

Commit 5b337e6

Browse files
authored
Merge pull request #7961 from philljj/fips_pkcallback
Update HAVE_FIPS define guard in test.h.
2 parents 171ab4b + ea57e82 commit 5b337e6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

wolfssl/test.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3342,8 +3342,9 @@ static WC_INLINE int myEccSharedSecret(WOLFSSL* ssl, ecc_key* otherKey,
33423342
ret = BAD_FUNC_ARG;
33433343
}
33443344

3345-
#if defined(ECC_TIMING_RESISTANT) && !defined(HAVE_FIPS) && \
3346-
!defined(HAVE_SELFTEST)
3345+
#if defined(ECC_TIMING_RESISTANT) && (!defined(HAVE_FIPS) || \
3346+
(!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION != 2))) && \
3347+
!defined(HAVE_SELFTEST)
33473348
if (ret == 0) {
33483349
ret = wc_ecc_set_rng(privKey, wolfSSL_GetRNG(ssl));
33493350
}

0 commit comments

Comments
 (0)