From: Jouni Malinen Date: Sat, 1 Aug 2015 18:03:04 +0000 (+0300) Subject: tests: Skip ms_funcs module tests in CONFIG_FIPS=y builds X-Git-Tag: hostap_2_5~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd94f0d159dd5682f5a0023d28d83e471ae00eae;p=thirdparty%2Fhostap.git tests: Skip ms_funcs module tests in CONFIG_FIPS=y builds Signed-off-by: Jouni Malinen --- diff --git a/src/crypto/crypto_module_tests.c b/src/crypto/crypto_module_tests.c index 3b87c7dae..20498532f 100644 --- a/src/crypto/crypto_module_tests.c +++ b/src/crypto/crypto_module_tests.c @@ -1573,6 +1573,7 @@ static int test_sha256(void) static int test_ms_funcs(void) { +#ifndef CONFIG_FIPS /* Test vector from RFC2759 example */ char *username = "User"; char *password = "clientPass"; @@ -1665,6 +1666,10 @@ static int test_ms_funcs(void) wpa_printf(MSG_INFO, "ms_funcs test cases passed"); return errors; +#else /* CONFIG_FIPS */ + wpa_printf(MSG_INFO, "ms_funcs test cases skipped due to CONFIG_FIPS"); + return 0; +#endif /* CONFIG_FIPS */ }