Skip to content

Commit

Permalink
configure.ac: require explicit arg for --enable-fips.
Browse files Browse the repository at this point in the history
  • Loading branch information
douzzer committed Jan 22, 2025
1 parent 1729d03 commit 6102daf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ AS_CASE([$ENABLED_FIPS],
FIPS_VERSION="disabled"
ENABLED_FIPS="no"
],
[v1|yes|cert2425],[
[v1|cert2425],[
FIPS_VERSION="v1"
HAVE_FIPS_VERSION_MAJOR=1
ENABLED_FIPS="yes"
Expand Down Expand Up @@ -510,7 +510,8 @@ AS_CASE([$ENABLED_FIPS],
# for dev, DEF_SP_MATH and DEF_FAST_MATH follow non-FIPS defaults (currently sp-math-all)
],
[
AC_MSG_ERROR([Invalid value for --enable-fips "$ENABLED_FIPS" (main options: v1, v2, v5, v6, ready, dev, rand, no, disabled)])
AS_IF([test "$ENABLED_FIPS" = "yes"],[ENABLED_FIPS="(unset)"],[ENABLED_FIPS=\"$ENABLED_FIPS\"])
AC_MSG_ERROR([Invalid value for --enable-fips $ENABLED_FIPS (main options: v1, v2, v5, v6, ready, dev, rand, no, disabled)])
])

if test -z "$HAVE_FIPS_VERSION_MAJOR"
Expand Down

0 comments on commit 6102daf

Please sign in to comment.