guard -ecc-all with HAVE_SELFTEST macro

This commit is contained in:
Jacob Barthelmeh
2021-01-22 16:13:31 +07:00
parent b418936f72
commit 6fa1556daf

View File

@ -1826,7 +1826,7 @@ static void* benchmarks_do(void* args)
(bench_asym_algs & BENCH_ECC_ENCRYPT)) {
if (bench_asym_algs & BENCH_ECC_ALL) {
#ifdef HAVE_FIPS
#if defined(HAVE_FIPS) || defined(HAVE_SELFTEST)
printf("not supported in FIPS mode (no ending enum value)\n");
#else
int curveId = (int)ECC_SECP192R1;