mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
Fix honoring --cert-digest-algo when recreating a cert
* g10/sign.c (update_keysig_packet): Override original signature's digest algo in hashed data.
This commit is contained in:
parent
faf2174979
commit
ff5cfadc2c
@ -1514,6 +1514,7 @@ 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... */
|
||||
|
Loading…
x
Reference in New Issue
Block a user