mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02: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:
parent
5d2060e211
commit
764b3f9395
@ -1,5 +1,8 @@
|
|||||||
2006-03-06 David Shaw <dshaw@jabberwocky.com>
|
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
|
* mainproc.c (proc_compressed): "Uncompressed" is not a valid
|
||||||
compression algorithm.
|
compression algorithm.
|
||||||
|
|
||||||
|
@ -1374,9 +1374,8 @@ make_keysig_packet( PKT_signature **ret_sig, PKT_public_key *pk,
|
|||||||
|
|
||||||
if(opt.cert_digest_algo)
|
if(opt.cert_digest_algo)
|
||||||
digest_algo=opt.cert_digest_algo;
|
digest_algo=opt.cert_digest_algo;
|
||||||
else if((sk->pubkey_algo==PUBKEY_ALGO_RSA ||
|
else if(sk->pubkey_algo==PUBKEY_ALGO_RSA
|
||||||
sk->pubkey_algo==PUBKEY_ALGO_RSA_S) &&
|
&& pk->version<4 && sigversion<4)
|
||||||
pk->version<4 && sigversion < 4)
|
|
||||||
digest_algo = DIGEST_ALGO_MD5;
|
digest_algo = DIGEST_ALGO_MD5;
|
||||||
else
|
else
|
||||||
digest_algo = DIGEST_ALGO_SHA1;
|
digest_algo = DIGEST_ALGO_SHA1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user