mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
gpg: Fix honoring --cert-digest-algo when recreating a cert
* g10/sign.c (update_keysig_packet): Override original signature's digest algo in hashed data and for hash computation.
This commit is contained in:
parent
00c9082632
commit
3cfe527fa5
@ -1532,6 +1532,8 @@ update_keysig_packet( PKT_signature **ret_sig,
|
||||
/* create a new signature packet */
|
||||
sig = copy_signature (NULL, orig_sig);
|
||||
|
||||
sig->digest_algo=digest_algo;
|
||||
|
||||
/* We need to create a new timestamp so that new sig expiration
|
||||
calculations are done correctly... */
|
||||
sig->timestamp=make_timestamp();
|
||||
|
Loading…
x
Reference in New Issue
Block a user