From 12ab4f725d605130a7719a687981d9d1d3e6337f Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 7 Mar 2017 07:55:10 +0100 Subject: tests: converted compile-time checks for FIPS140 mode to run-time 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 --- tests/mini-record.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/mini-record.c') diff --git a/tests/mini-record.c b/tests/mini-record.c index f6d9c61a5d..6e8c0ffb42 100644 --- a/tests/mini-record.c +++ b/tests/mini-record.c @@ -413,9 +413,9 @@ void doit(void) start(AES_GCM); start(AES_CCM); start(AES_CCM_8); -#ifndef ENABLE_FIPS140 - start(CHACHA_POLY1305); -#endif + if (!gnutls_fips140_mode_enabled()) { + start(CHACHA_POLY1305); + } } #endif /* _WIN32 */ -- cgit v1.2.1