From: Nikos Mavrogiannopoulos Date: Mon, 17 Sep 2018 13:14:12 +0000 (+0200) Subject: tests: pkcs1-pad: run with SHA-1 enabled or disabled X-Git-Tag: gnutls_3_6_4~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df8465c7df41f42e0271a19229be08c2b12828da;p=thirdparty%2Fgnutls.git tests: pkcs1-pad: run with SHA-1 enabled or disabled Signed-off-by: Nikos Mavrogiannopoulos --- diff --git a/tests/cert-tests/pkcs1-pad b/tests/cert-tests/pkcs1-pad index a314fb308d..33663a6a0b 100755 --- a/tests/cert-tests/pkcs1-pad +++ b/tests/cert-tests/pkcs1-pad @@ -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"