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

index ad355f8fc9c8a764ceeec1650b63e36492f4f6f0..3b87c7daee7d3a80d5fd2644cb993a59f5e079ef 100644 (file)
@@ -733,6 +733,7 @@ static int test_key_wrap(void)
 
 static int test_md5(void)
 {
+#ifndef CONFIG_FIPS
        struct {
                char *data;
                char *hash;
@@ -811,6 +812,10 @@ static int test_md5(void)
                wpa_printf(MSG_INFO, "MD5 test cases passed");
 
        return errors;
+#else /* CONFIG_FIPS */
+       wpa_printf(MSG_INFO, "MD5 test cases skipped due to CONFIG_FIPS");
+       return 0;
+#endif /* CONFIG_FIPS */
 }