diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-02-24 09:42:26 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-03-16 15:47:10 +0100 |
commit | b26a40b616a90ab6af9408cabf228bdec2e15b69 (patch) | |
tree | 1f096d27af3aebd8f7cc1f5a24ee5853eb3b2559 /tests/cert-tests | |
parent | 1d75e116b1681d0e6b140d7530e7f0403088da88 (diff) | |
download | gnutls-b26a40b616a90ab6af9408cabf228bdec2e15b69.tar.gz |
tests: updated to account SHA1 move to broken set
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/cert-tests')
-rwxr-xr-x | tests/cert-tests/aki | 2 | ||||
-rwxr-xr-x | tests/cert-tests/certtool-long-oids | 4 | ||||
-rwxr-xr-x | tests/cert-tests/name-constraints | 4 | ||||
-rwxr-xr-x | tests/cert-tests/pathlen | 2 | ||||
-rwxr-xr-x | tests/cert-tests/pem-decoding | 2 | ||||
-rwxr-xr-x | tests/cert-tests/pkcs1-pad | 4 | ||||
-rwxr-xr-x | tests/cert-tests/pkcs7-cat | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/tests/cert-tests/aki b/tests/cert-tests/aki index 1c72f0d433..e8d39588e3 100755 --- a/tests/cert-tests/aki +++ b/tests/cert-tests/aki @@ -36,7 +36,7 @@ if ! test -z "${VALGRIND}"; then fi ${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/aki-cert.pem" \ - |grep -v "Algorithm Security Level" > $TMPFILE + |grep -v "Algorithm Security Level"|grep -v ^warning > $TMPFILE rc=$? if test "${rc}" != "0"; then diff --git a/tests/cert-tests/certtool-long-oids b/tests/cert-tests/certtool-long-oids index c2e9559326..c06cf73a31 100755 --- a/tests/cert-tests/certtool-long-oids +++ b/tests/cert-tests/certtool-long-oids @@ -36,7 +36,7 @@ if ! test -z "${VALGRIND}"; then VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=3" fi -${VALGRIND} "${CERTTOOL}" -i --infile "${srcdir}/data/long-oids.pem"|grep -v "Not After:" >$OUTFILE +${VALGRIND} "${CERTTOOL}" -i --infile "${srcdir}/data/long-oids.pem"|grep -v "Not After:"|grep -v ^warning >$OUTFILE rc=$? if test "${rc}" != 0;then @@ -44,7 +44,7 @@ if test "${rc}" != 0;then exit 1 fi -cat "${srcdir}/data/long-oids.pem" |grep -v "Not After:" >${TMPFILE1} +cat "${srcdir}/data/long-oids.pem" |grep -v "Not After:"|grep -v ^warning >${TMPFILE1} $DIFF ${TMPFILE1} ${OUTFILE} if test $? != 0;then echo "Error in parsing cert with long OIDs" diff --git a/tests/cert-tests/name-constraints b/tests/cert-tests/name-constraints index 9f7e453f36..c28259e25f 100755 --- a/tests/cert-tests/name-constraints +++ b/tests/cert-tests/name-constraints @@ -39,7 +39,7 @@ TMPFILE=tmp.$$.pem check_for_datefudge datefudge -s "2016-04-22" \ - ${VALGRIND} "${CERTTOOL}" -e --infile "${srcdir}/data/name-constraints-ip.pem" + ${VALGRIND} "${CERTTOOL}" --verify-allow-broken -e --infile "${srcdir}/data/name-constraints-ip.pem" rc=$? if test "${rc}" != "0"; then @@ -55,7 +55,7 @@ if test "${rc}" != "0"; then exit 1 fi -${DIFF} "${TMPFILE}" "${srcdir}/data/name-constraints-ip2.pem" >/dev/null 2>&1 +${DIFF} -I ^warning "${TMPFILE}" "${srcdir}/data/name-constraints-ip2.pem" >/dev/null 2>&1 rc=$? if test "${rc}" != "0"; then diff --git a/tests/cert-tests/pathlen b/tests/cert-tests/pathlen index 7f250e03b4..d532012295 100755 --- a/tests/cert-tests/pathlen +++ b/tests/cert-tests/pathlen @@ -37,7 +37,7 @@ fi TMPFILE1=ca-no-pathlen-$$.tmp TMPFILE2=no-ca-or-pathlen-$$.tmp ${VALGRIND} "${CERTTOOL}" --certificate-info --infile "${srcdir}/data/ca-no-pathlen.pem" \ - |grep -v "Algorithm Security Level" > $TMPFILE1 + |grep -v "Algorithm Security Level"|grep -v ^warning > $TMPFILE1 rc=$? if test "${rc}" != "0"; then diff --git a/tests/cert-tests/pem-decoding b/tests/cert-tests/pem-decoding index b4c2a44120..a31f412b48 100755 --- a/tests/cert-tests/pem-decoding +++ b/tests/cert-tests/pem-decoding @@ -96,7 +96,7 @@ fi cat "${srcdir}/data/xmpp-othername.pem" |grep -v "Not After:" >${TMPFILE1} cat ${TMPFILE} |grep -v "Not After:" >${TMPFILE2} -${DIFF} -I 'Algorithm Security Level' ${TMPFILE1} ${TMPFILE2} || ${DIFF} -I 'Algorithm Security Level' --strip-trailing-cr ${TMPFILE1} ${TMPFILE2} +${DIFF} -I ^warning -I 'Algorithm Security Level' ${TMPFILE1} ${TMPFILE2} || ${DIFF} -I 'Algorithm Security Level' --strip-trailing-cr ${TMPFILE1} ${TMPFILE2} rc=$? if test "${rc}" != "0"; then diff --git a/tests/cert-tests/pkcs1-pad b/tests/cert-tests/pkcs1-pad index bc859cc31d..8fa341b38f 100755 --- a/tests/cert-tests/pkcs1-pad +++ b/tests/cert-tests/pkcs1-pad @@ -46,8 +46,8 @@ TMPFILE2=pkcs1-pad-2.$$.tmp EXPECT1=2002 -datefudge "2006-09-23" "${CERTTOOL}" --verify-chain --infile "${srcdir}/data/pkcs1-pad-ok.pem" | tee $TMPFILE1 >/dev/null 2>&1 -datefudge "2006-09-23" "${CERTTOOL}" --verify-chain --infile "${srcdir}/data/pkcs1-pad-broken.pem" | tee $TMPFILE2 >/dev/null 2>&1 +datefudge "2006-09-23" "${CERTTOOL}" --verify-allow-broken --verify-chain --infile "${srcdir}/data/pkcs1-pad-ok.pem" | tee $TMPFILE1 >/dev/null 2>&1 +datefudge "2006-09-23" "${CERTTOOL}" --verify-allow-broken --verify-chain --infile "${srcdir}/data/pkcs1-pad-broken.pem" | tee $TMPFILE2 >/dev/null 2>&1 out1oks=`grep 'Verified.' $TMPFILE1 | wc -l | tr -d " "` out2oks=`grep 'Verified.' $TMPFILE2 | wc -l | tr -d " "` diff --git a/tests/cert-tests/pkcs7-cat b/tests/cert-tests/pkcs7-cat index f55c085ab2..0f5b82df12 100755 --- a/tests/cert-tests/pkcs7-cat +++ b/tests/cert-tests/pkcs7-cat @@ -38,7 +38,7 @@ OUTFILE=out-pkcs7.$$.tmp check_for_datefudge datefudge -s "2016-10-1" \ -${VALGRIND} "${CERTTOOL}" --p7-verify --inder --infile "${srcdir}/data/pkcs7-cat.p7" --load-ca-certificate "${srcdir}/data/pkcs7-cat-ca.pem" +${VALGRIND} "${CERTTOOL}" --verify-allow-broken --p7-verify --inder --infile "${srcdir}/data/pkcs7-cat.p7" --load-ca-certificate "${srcdir}/data/pkcs7-cat-ca.pem" rc=$? if test "${rc}" != "0"; then |