[PATCH 04/12] Add FIPS warning

Juliusz Sosinowicz juliusz at wolfssl.com
Wed Mar 8 09:18:42 PST 2023


Signed-off-by: Juliusz Sosinowicz <juliusz at wolfssl.com>
---
 src/crypto/crypto_wolfssl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c
index da5f998de..5d9c17a16 100644
--- a/src/crypto/crypto_wolfssl.c
+++ b/src/crypto/crypto_wolfssl.c
@@ -31,6 +31,11 @@
 #include <wolfssl/wolfcrypt/sha256.h>
 #include <wolfssl/wolfcrypt/sha512.h>
 
+#ifdef CONFIG_FIPS
+#ifndef HAVE_FIPS
+#warning "You are compiling wpa_supplicant in FIPS mode but wolfSSL is not configured for FIPS mode."
+#endif
+#endif
 
 #ifndef CONFIG_FIPS
 
-- 
2.25.1




More information about the Hostap mailing list