Avoid testing ECDSA when hcrypto doesn't support it

This commit is contained in:
Love Hornquist Astrand
2009-08-14 16:24:35 +02:00
parent c9bc9957aa
commit 92288a7137

View File

@@ -187,15 +187,19 @@ ${hxtool} verify \
anchor:FILE:$srcdir/data/ca.crt \
crl:FILE:$srcdir/data/crl1.der > /dev/null && exit 1
echo "eccert -> root"
${hxtool} verify --missing-revoke \
cert:FILE:$srcdir/data/secp160r2TestServer.cert.pem \
anchor:FILE:$srcdir/data/secp160r1TestCA.cert.pem > /dev/null || exit 1
echo "eccert -> root"
${hxtool} verify --missing-revoke \
cert:FILE:$srcdir/data/secp160r2TestClient.cert.pem \
anchor:FILE:$srcdir/data/secp160r1TestCA.cert.pem > /dev/null || exit 1
if ${hxtool} info | grep 'ecdsa: hcrypto null' > /dev/null ; then
echo "not testing ECDSA since hcrypto doesnt support ECDSA"
else
echo "eccert -> root"
${hxtool} verify --missing-revoke \
cert:FILE:$srcdir/data/secp160r2TestServer.cert.pem \
anchor:FILE:$srcdir/data/secp160r1TestCA.cert.pem > /dev/null || exit 1
echo "eccert -> root"
${hxtool} verify --missing-revoke \
cert:FILE:$srcdir/data/secp160r2TestClient.cert.pem \
anchor:FILE:$srcdir/data/secp160r1TestCA.cert.pem > /dev/null || exit 1
fi
echo "proxy cert"
${hxtool} verify --missing-revoke \