From df8465c7df41f42e0271a19229be08c2b12828da Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 17 Sep 2018 15:14:12 +0200 Subject: tests: pkcs1-pad: run with SHA-1 enabled or disabled Signed-off-by: Nikos Mavrogiannopoulos --- tests/cert-tests/pkcs1-pad | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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" -- cgit v1.2.1