From 6102dafa488c5bc4ae1cad4e53b7ec89f6d8ef04 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 22 Jan 2025 12:48:52 -0600 Subject: [PATCH 1/2] configure.ac: require explicit arg for --enable-fips. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 96ac76bd4f..4a077f3f40 100644 --- a/configure.ac +++ b/configure.ac @@ -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" @@ -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" From bcdfc5791cfb6e75539eca59e792e9e8b2cc2674 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 22 Jan 2025 12:49:36 -0600 Subject: [PATCH 2/2] wolfssl/ssl.h: fix speling erorr (thanks codespell). --- wolfssl/ssl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index de95859b22..3db65465d7 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -2980,7 +2980,7 @@ enum { /* ssl Constants */ /* Operation did not complete; callback needs this API to be called again.*/ WOLFSSL_ERROR_WANT_X509_LOOKUP = 4, - /* Some sort of sytem I/O error happened.*/ + /* Some sort of system I/O error happened.*/ WOLFSSL_ERROR_SYSCALL = 5, /* The connection has been closed with a closure alert.*/