]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Skip ms_funcs module tests in CONFIG_FIPS=y builds
authorJouni Malinen <j@w1.fi>
Sat, 1 Aug 2015 18:03:04 +0000 (21:03 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 2 Aug 2015 13:52:56 +0000 (16:52 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/crypto_module_tests.c

index 3b87c7daee7d3a80d5fd2644cb993a59f5e079ef..20498532fee5722d3cae38913aa5ac475c7aea91 100644 (file)
@@ -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 */
 }