Skip to content

Commit

Permalink
Merge pull request #7961 from philljj/fips_pkcallback
Browse files Browse the repository at this point in the history
Update HAVE_FIPS define guard in test.h.
  • Loading branch information
douzzer authored Sep 12, 2024
2 parents 171ab4b + ea57e82 commit 5b337e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wolfssl/test.h
Original file line number Diff line number Diff line change
Expand Up @@ -3342,8 +3342,9 @@ static WC_INLINE int myEccSharedSecret(WOLFSSL* ssl, ecc_key* otherKey,
ret = BAD_FUNC_ARG;
}

#if defined(ECC_TIMING_RESISTANT) && !defined(HAVE_FIPS) && \
!defined(HAVE_SELFTEST)
#if defined(ECC_TIMING_RESISTANT) && (!defined(HAVE_FIPS) || \
(!defined(HAVE_FIPS_VERSION) || (HAVE_FIPS_VERSION != 2))) && \
!defined(HAVE_SELFTEST)
if (ret == 0) {
ret = wc_ecc_set_rng(privKey, wolfSSL_GetRNG(ssl));
}
Expand Down

0 comments on commit 5b337e6

Please sign in to comment.