Skip to content

Commit

Permalink
Merge pull request #7561 from kaleb-himes/SRTP-KDF-MAINTENANCE
Browse files Browse the repository at this point in the history
Address periodic CAST failures observed in unit.test by pre-empting CASTs
  • Loading branch information
SparkiDev committed May 20, 2024
2 parents 7d4e601 + a22956d commit 095906f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ int unit_test(int argc, char** argv)

(void)argc;
(void)argv;

#ifdef WOLFSSL_FORCE_MALLOC_FAIL_TEST
if (argc > 1) {
int memFailCount = atoi(argv[1]);
Expand Down Expand Up @@ -161,7 +160,7 @@ int unit_test(int argc, char** argv)
err_sys("KDF TLSv1.2 CAST failed");
}
#endif
#if defined(WOLFSSL_HAVE_PRF) && defined(WOLFSSL_TLS13)
#if defined(HAVE_HKDF) && !defined(NO_HMAC)
if (wc_RunCast_fips(FIPS_CAST_KDF_TLS13) != 0) {
err_sys("KDF TLSv1.3 CAST failed");
}
Expand All @@ -172,6 +171,11 @@ int unit_test(int argc, char** argv)
}
#endif
#endif /* HAVE_FIPS && HAVE_FIPS_VERSION == 5 */
#if FIPS_VERSION3_GT(5,2,0)
if (wc_RunAllCast_fips() != 0) {
err_sys("wc_RunAllCast_fips() failed\n");
}
#endif

while (argc > 1) {
if (argv[1][0] != '-') {
Expand Down

0 comments on commit 095906f

Please sign in to comment.