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/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/openssl.c') diff --git a/tests/openssl.c b/tests/openssl.c index aee870a707..483611cfc0 100644 --- a/tests/openssl.c +++ b/tests/openssl.c @@ -35,6 +35,10 @@ void doit(void) MD5_CTX c; unsigned char md[MD5_DIGEST_LENGTH]; + if (gnutls_fips140_mode_enabled()) { + exit(77); + } + if (global_init() != 0) fail("global_init\n"); -- cgit v1.2.1