From: Juliusz Sosinowicz Date: Wed, 8 Mar 2023 17:18:42 +0000 (+0100) Subject: wolfSSL: Add FIPS warning X-Git-Tag: hostap_2_11~854 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0e8d9ae71bff844972b0a02942bdc5444b989dc;p=thirdparty%2Fhostap.git wolfSSL: Add FIPS warning Signed-off-by: Juliusz Sosinowicz --- 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