* clearsig.test, sigs.test: Properly detect RSA being missing, and use the

proper key for doing an RSA test.
This commit is contained in:
David Shaw 2004-02-09 19:44:36 +00:00
parent bbd5cda569
commit 74eadbf99b
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2004-02-09 David Shaw <dshaw@jabberwocky.com>
* clearsig.test, sigs.test: Properly detect RSA being missing, and
use the proper key for doing an RSA test.
2003-12-31 David Shaw <dshaw@jabberwocky.com>
* clearsig.test, conventional-mdc.test, conventional.test,

View File

@ -19,9 +19,9 @@ done
# and once more to check rfc1991
# ======================================
if have_cipher_algo "RSA"; then
if have_pubkey_algo "RSA"; then
for i in $plain_files plain-large ; do
$GPG -u $usrkeyid3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
$GPG -u $usrname3 --rfc1991 --digest-algo md5 -sat -o x --yes $i
$GPG --verify x
done
fi

View File

@ -24,7 +24,7 @@ done
# TODO: add the new SHAs here once we allow them to be used in new
# documents.
if have_cipher_algo "RSA"; then
if have_pubkey_algo "RSA"; then
# Using the RSA sig key - all hashes
hash_algo_list="ripemd160 sha1 md5"
if have_hash_algo "SHA256"; then
@ -33,7 +33,7 @@ if have_cipher_algo "RSA"; then
for da in $hash_algo_list ; do
for i in $plain_files; do
$GPG -u $usrkeyid3 --digest-algo $da -s -o x --yes $i
$GPG -u $usrname3 --digest-algo $da -s -o x --yes $i
$GPG -o y --yes x
cmp $i y || error "$i: mismatch"
# process only the first one