From 1fb3c0afffec0b53a01fa3374bb0099218902ce0 Mon Sep 17 00:00:00 2001 From: Pauli Date: Thu, 11 Apr 2019 08:55:50 +1000 Subject: [PATCH] Skip the no derivation functions when in FIPS mode because they are not applicable. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8695) --- test/drbg_cavs_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/drbg_cavs_test.c b/test/drbg_cavs_test.c index 8138269bff..ce7a565ec1 100644 --- a/test/drbg_cavs_test.c +++ b/test/drbg_cavs_test.c @@ -257,7 +257,8 @@ static int test_cavs_kats(const struct drbg_kat *test[], int i) #ifdef FIPS_MODE /* FIPS mode doesn't support instantiating without a derivation function */ if ((td->flags & USE_DF) == 0) - return 1; + return TEST_skip("instantiating without derivation function " + "is not supported in FIPS mode"); #endif switch (td->type) { case NO_RESEED: -- 2.25.1