summaryrefslogtreecommitdiff
path: root/tests/mini-record-2.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-03-07 07:55:10 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-07 11:45:13 +0100
commit12ab4f725d605130a7719a687981d9d1d3e6337f (patch)
tree3d8ba213ef007b4f02286caa3e42234b202bbabc /tests/mini-record-2.c
parent603772688c4e37dae437b4cede12e25b9dd9f678 (diff)
downloadgnutls-12ab4f725d605130a7719a687981d9d1d3e6337f.tar.gz
tests: converted compile-time checks for FIPS140 mode to run-timetmp-use-thread-local-rng
This allows running the complete test suite even when the library is compiled in FIPS140-2 mode, as long as the run-time is not at this mode. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/mini-record-2.c')
-rw-r--r--tests/mini-record-2.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/mini-record-2.c b/tests/mini-record-2.c
index c6abe0951e..c4a22c1836 100644
--- a/tests/mini-record-2.c
+++ b/tests/mini-record-2.c
@@ -446,17 +446,17 @@ void doit(void)
start(AES_CCM, 0);
start(AES_CCM_8, 0);
-#ifndef ENABLE_FIPS140
- start(NULL_SHA1, 0);
+ if (!gnutls_fips140_mode_enabled()) {
+ start(NULL_SHA1, 0);
- start(ARCFOUR_SHA1, 0);
- start(ARCFOUR_MD5, 0);
- start(CHACHA_POLY1305, 0);
+ start(ARCFOUR_SHA1, 0);
+ start(ARCFOUR_MD5, 0);
+ start(CHACHA_POLY1305, 0);
-# ifdef HAVE_LIBZ
- start(ARCFOUR_SHA1_ZLIB, 0);
-# endif
+#ifdef HAVE_LIBZ
+ start(ARCFOUR_SHA1_ZLIB, 0);
#endif
+ }
#ifdef HAVE_LIBZ
start(AES_GCM_ZLIB, 0);