]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: skip pkcs12-gost under GNUTLS_FORCE_FIPS_MODE
authorDaiki Ueno <dueno@redhat.com>
Mon, 3 Feb 2020 04:18:29 +0000 (05:18 +0100)
committerDaiki Ueno <dueno@redhat.com>
Tue, 4 Feb 2020 09:29:37 +0000 (10:29 +0100)
The MAC algorithm used in the PBKDF2 is actually prohibited in the
FIPS mode and previously there wasn't a check for that.

Signed-off-by: Daiki Ueno <dueno@redhat.com>
tests/cert-tests/pkcs12-gost

index 2b5b6bfd7987e9d689694dd180502001f75bf3df..f7c4bba52b04a0285db9fe75397cf4ee42a505bf 100755 (executable)
@@ -29,6 +29,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