1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* sign.c (make_keysig_packet): Don't use MD5 for a RSA_S key as that

is not a PGP 2.x algorithm.
This commit is contained in:
David Shaw 2006-03-07 01:16:31 +00:00
parent 5d2060e211
commit 764b3f9395
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2006-03-06 David Shaw <dshaw@jabberwocky.com>
* sign.c (make_keysig_packet): Don't use MD5 for a RSA_S key as
that is not a PGP 2.x algorithm.
* mainproc.c (proc_compressed): "Uncompressed" is not a valid
compression algorithm.

View File

@ -1374,9 +1374,8 @@ make_keysig_packet( PKT_signature **ret_sig, PKT_public_key *pk,
if(opt.cert_digest_algo)
digest_algo=opt.cert_digest_algo;
else if((sk->pubkey_algo==PUBKEY_ALGO_RSA ||
sk->pubkey_algo==PUBKEY_ALGO_RSA_S) &&
pk->version<4 && sigversion < 4)
else if(sk->pubkey_algo==PUBKEY_ALGO_RSA
&& pk->version<4 && sigversion<4)
digest_algo = DIGEST_ALGO_MD5;
else
digest_algo = DIGEST_ALGO_SHA1;