diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-09-17 15:14:12 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-09-17 15:14:12 +0200 |
commit | df8465c7df41f42e0271a19229be08c2b12828da (patch) | |
tree | 73910bdfe80b8e05ace37994ea9d45aeac5a9dd9 | |
parent | 7ce7b28dbdfbcc798b682d0f26e6d9ef59277a37 (diff) | |
download | gnutls-tmp-sha1-fix-test.tar.gz |
tests: pkcs1-pad: run with SHA-1 enabled or disabledtmp-sha1-fix-test
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rwxr-xr-x | tests/cert-tests/pkcs1-pad | 4 |
1 files changed, 1 insertions, 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" |