summaryrefslogtreecommitdiff
path: root/tests/cert-tests/pkcs12
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2017-03-07 23:10:43 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-08 10:54:49 +0100
commitcffe25b1097a4695c984c45996d62fcfeef8c51b (patch)
tree5c1e165407c9a6c61551f577f52473ab5b5c2241 /tests/cert-tests/pkcs12
parent3b22f3055dac7f3b643feacce2fc338d8e9a35ed (diff)
downloadgnutls-cffe25b1097a4695c984c45996d62fcfeef8c51b.tar.gz
tests: converted FIPS140-2 mode checks in Makefiles to run-time in scripts
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'tests/cert-tests/pkcs12')
-rwxr-xr-xtests/cert-tests/pkcs125
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/cert-tests/pkcs12 b/tests/cert-tests/pkcs12
index f28bd8008d..4a2067e818 100755
--- a/tests/cert-tests/pkcs12
+++ b/tests/cert-tests/pkcs12
@@ -28,6 +28,11 @@ if ! test -x "${CERTTOOL}"; then
exit 77
fi
+if test "${GNUTLS_FORCE_FIPS_MODE}" = 1;then
+ echo "Cannot run in FIPS140-2 mode"
+ exit 77
+fi
+
if ! test -z "${VALGRIND}"; then
VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=1"
fi