diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-03-07 07:55:10 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-03-07 11:45:13 +0100 |
commit | 12ab4f725d605130a7719a687981d9d1d3e6337f (patch) | |
tree | 3d8ba213ef007b4f02286caa3e42234b202bbabc /tests/mini-record.c | |
parent | 603772688c4e37dae437b4cede12e25b9dd9f678 (diff) | |
download | gnutls-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.c')
-rw-r--r-- | tests/mini-record.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 */ |