From a0e8d9ae71bff844972b0a02942bdc5444b989dc Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 8 Mar 2023 18:18:42 +0100 Subject: [PATCH] wolfSSL: Add FIPS warning Signed-off-by: Juliusz Sosinowicz --- src/crypto/crypto_wolfssl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index da5f998de..1ef6a1e9b 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -31,6 +31,12 @@ #include #include +#ifdef CONFIG_FIPS +#ifndef HAVE_FIPS +#warning "You are compiling wpa_supplicant/hostapd in FIPS mode but wolfSSL is not configured for FIPS mode." +#endif /* HAVE_FIPS */ +#endif /* CONFIG_FIPS */ + #ifndef CONFIG_FIPS