diff options
Diffstat (limited to 'tests/openpgp/sigs-dsa.test')
-rwxr-xr-x | tests/openpgp/sigs-dsa.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/openpgp/sigs-dsa.test b/tests/openpgp/sigs-dsa.test index e4f812a2d..4ba43ac77 100755 --- a/tests/openpgp/sigs-dsa.test +++ b/tests/openpgp/sigs-dsa.test @@ -17,7 +17,14 @@ for i in $plain_files $data_files; do cmp $i y || error "$i: mismatch" done -for da in ripemd160 sha1; do +algos="sha1" +if have_hash_algo "RIPEMD160"; then + algos="ripemd160 $algos" +else + echo "Hash algorithm RIPEMD160 is not installed (not an error)" +fi + +for da in $algos; do for i in $plain_files; do $GPG --digest-algo $da -s -o x --yes -u $dsa_usrname1 $i $GPG -o y --yes x |