Merge pull request #9763 from LinuxJedi/no-fips-selftest

Don't allow `--enable-selftest` with empty file
This commit is contained in:
Sean Parkinson
2026-02-12 07:53:06 +10:00
committed by GitHub
+3
View File
@@ -6602,6 +6602,9 @@ AS_CASE([$ENABLED_SELFTEST],
SELFTEST_VERSION="v1"
])
AS_IF([test "x$ENABLED_SELFTEST" = "xyes" && test ! -s "${srcdir}/wolfcrypt/src/selftest.c"],
[AC_MSG_ERROR([selftest.c is missing, --enable-selftest requires the CAVP selftest source])])
AS_CASE([$SELFTEST_VERSION],
["v2"],[
AM_CFLAGS="$AM_CFLAGS -DHAVE_SELFTEST -DHAVE_SELFTEST_VERSION=2 -DHAVE_PUBLIC_FFDHE"