From 1fb53d16a6faf4694f98e7221e412fc01943380d Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 25 Nov 2015 00:32:11 +0100 Subject: [PATCH] sigtest.sh - check for version of ecdsautils See if we have the older multi-binary-version or if there is the newer single binary. --- contrib/sigtest.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contrib/sigtest.sh b/contrib/sigtest.sh index 2ed06d0f..7f52ae2b 100755 --- a/contrib/sigtest.sh +++ b/contrib/sigtest.sh @@ -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