summaryrefslogtreecommitdiff
path: root/tests/suite/testcompat-polarssl.sh
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/suite/testcompat-polarssl.sh
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/suite/testcompat-polarssl.sh')
-rwxr-xr-xtests/suite/testcompat-polarssl.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/suite/testcompat-polarssl.sh b/tests/suite/testcompat-polarssl.sh
index 32e04f753b..4c7a493d17 100755
--- a/tests/suite/testcompat-polarssl.sh
+++ b/tests/suite/testcompat-polarssl.sh
@@ -34,6 +34,11 @@ srcdir="${srcdir:-.}"
export TZ="UTC"
+if test "${GNUTLS_FORCE_FIPS_MODE}" = 1;then
+ echo "Cannot run in FIPS140-2 mode"
+ exit 77
+fi
+
# Check for datefudge
TSTAMP=`datefudge "2006-09-23 00:00 UTC" date -u +%s 2>/dev/null`
if test "${TSTAMP}" != "1158969600"; then