]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
tests: pkcs1-pad: run with SHA-1 enabled or disabled
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 17 Sep 2018 13:14:12 +0000 (15:14 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 17 Sep 2018 13:14:12 +0000 (15:14 +0200)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
tests/cert-tests/pkcs1-pad

index a314fb308de8073ce8ef1b97b1b4aacb83e6bde1..33663a6a0b981cd1d2b35eb8aa7eb0e03b0f87f7 100755 (executable)
@@ -89,14 +89,12 @@ echo "PKCS1-PAD2 OK"
 # by Andrei Pyshkin, Erik Tews and Ralf-Philipp Weinmann.
 
 
-EXPECT3=03
-
 datefudge "2006-09-23" "${CERTTOOL}" --verify-chain --infile "${srcdir}/data/pkcs1-pad-broken3.pem" | tee $TMPFILE1 >/dev/null 2>&1
 
 out1oks=`grep 'Verified.' $TMPFILE1 | wc -l | tr -d " "`
 out1fails=`grep 'Not verified.' $TMPFILE1 | wc -l | tr -d " "`
 
-if test "${out1oks}${out1fails}" != "${EXPECT3}"; then
+if test ${out1fails} -lt 2 || test ${out1oks} != 0;then
        echo "$TMPFILE1 oks ${out1oks} fails ${out1fails}"
        echo "expected ${EXPECT3}"
        echo "PKCS1-PAD3 FAIL"