summaryrefslogtreecommitdiffstats
path: root/test/drbg_cavs_test.c
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-04-11 08:55:50 +1000
committerPauli <paul.dale@oracle.com>2019-05-09 20:21:09 +1000
commit1fb3c0afffec0b53a01fa3374bb0099218902ce0 (patch)
tree46dcd079a987958fdf44f3155241924182b98b60 /test/drbg_cavs_test.c
parent7eeefcd841e6e58ecc0107acf550d1c12a7769ef (diff)
Skip the no derivation functions when in FIPS mode because they are not
applicable. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8695)
Diffstat (limited to 'test/drbg_cavs_test.c')
-rw-r--r--test/drbg_cavs_test.c3
1 files changed, 2 insertions, 1 deletions
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: