Skip to content

Commit 274295a

Browse files
committed
Don't allow --enable-selftest on non-FIPS builds
It probably won't compile anyway.
1 parent 2ef096a commit 274295a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6602,6 +6602,9 @@ AS_CASE([$ENABLED_SELFTEST],
66026602
SELFTEST_VERSION="v1"
66036603
])
66046604
6605+
AS_IF([test "x$ENABLED_SELFTEST" = "xyes" && test "x$ENABLED_FIPS" = "xno"],
6606+
[AC_MSG_ERROR([--enable-selftest requires --enable-fips])])
6607+
66056608
AS_CASE([$SELFTEST_VERSION],
66066609
["v2"],[
66076610
AM_CFLAGS="$AM_CFLAGS -DHAVE_SELFTEST -DHAVE_SELFTEST_VERSION=2 -DHAVE_PUBLIC_FFDHE"

0 commit comments

Comments
 (0)