tests: Skip MD5 module tests in CONFIG_FIPS=y builds

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-08-01 16:50:05 +03:00
parent b2a1f26259
commit 97e986cd74

View file

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