gpg: Default to SHA-256 for all signature types on RSA keys.
authorWerner Koch <wk@gnupg.org>
Sat, 27 Sep 2014 13:21:02 +0000 (15:21 +0200)
committerWerner Koch <wk@gnupg.org>
Sat, 27 Sep 2014 13:36:02 +0000 (15:36 +0200)
commit36179da032fa43d82042b3d31ed175d17b8e9bc4
treef2f82ea4bd5f5fa96995bf38e37100d8e6fd6794
parentba2b8c20ee68f7ee3e7a58f7c3449d94004131d8
gpg: Default to SHA-256 for all signature types on RSA keys.

* g10/main.h (DEFAULT_DIGEST_ALGO): Use SHA256 in --gnupg and SHA1 in
strict RFC or PGP modes.
* g10/sign.c (make_keysig_packet): Use DEFAULT_DIGEST_ALGO also for
RSA key signatures.
--

(Backported from commit d33246700578cddd1cb8ed8164cfbba50aba4ef3)
g10/main.h
g10/sign.c