sigtest.sh - check for version of ecdsautils

See if we have the older multi-binary-version or if there is the newer single binary.
This commit is contained in:
Christian 2015-11-25 00:32:11 +01:00
parent 7c12de7250
commit 1fb53d16a6

View File

@ -27,9 +27,15 @@ awk "BEGIN { sep=0 }
else print > \"$lower\"}" \
"$manifest"
if [ -e '/usr/local/bin/ecdsautil' ]; then
ECMD='/usr/local/bin/ecdsautil verify'
elif [ -e '/usr/local/bin/ecdsasign' ]; then
ECMD='/usr/local/bin/ecdsaverify -s'
fi
while read line
do
if ecdsaverify -s "$line" -p "$public" "$upper"; then
if $ECMD "$line" -p "$public" "$upper"; then
ret=0
break
fi