Drop verifying certifiates, its done in another test now.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16633 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-01-20 09:04:59 +00:00
parent b7cf177007
commit e94358fc92

View File

@@ -41,28 +41,12 @@ echo "nist tests"
test -d "$nistdir" || exit 77 test -d "$nistdir" || exit 77
while read id validate verify cert arg1 arg2 arg3 arg4 arg5 ; do while read id verify cert arg1 arg2 arg3 arg4 arg5 ; do
expr "$id" : "#" > /dev/null && continue expr "$id" : "#" > /dev/null && continue
test "$id" = "end" && break test "$id" = "end" && break
echo -n . echo -n .
if ./hxtool validate $nistdir/certs/$cert > /dev/null; then
if test "$validate" = "f"; then
echo "validate passed on fail: $id $cert"
exit 1
fi
else
if test "$validate" = "p"; then
echo "validate failed on pass: $id $cert"
exit 1
fi
fi
if test "$verify" = "s"; then
continue
fi
args="" args=""
a=$(echo $arg1 | sed "s@basedir@$nistdir@") ; args="$args $a" a=$(echo $arg1 | sed "s@basedir@$nistdir@") ; args="$args $a"
a=$(echo $arg2 | sed "s@basedir@$nistdir@") ; args="$args $a" a=$(echo $arg2 | sed "s@basedir@$nistdir@") ; args="$args $a"
@@ -74,14 +58,14 @@ while read id validate verify cert arg1 arg2 arg3 arg4 arg5 ; do
args="$args crl:FILE:$nistdir/crls/TrustAnchorRootCRL.crl" args="$args crl:FILE:$nistdir/crls/TrustAnchorRootCRL.crl"
args="$args cert:FILE:$nistdir/certs/$cert" args="$args cert:FILE:$nistdir/certs/$cert"
if ./hxtool verify $args > /dev/null ; then if ./hxtool verify $args > /dev/null; then
if test "$verify" = "f"; then if test "$verify" = "f"; then
echo "validate passed on fail: $id $cert" echo "verify passed on fail: $id $cert"
exit 1 exit 1
fi fi
else else
if test "$verify" = "p"; then if test "$verify" = "p"; then
echo "validate failed on pass: $id $cert" echo "verify failed on pass: $id $cert"
exit 1 exit 1
fi fi
fi fi