mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Make commit 2b3cb2ee
actually work
* g10/sign.c (update_keysig_packet): Use digest_algo.
(cherry-picked from commit d23ec86095
)
This commit is contained in:
parent
8325d61659
commit
d61f7402f2
1 changed files with 3 additions and 2 deletions
|
@ -1576,7 +1576,8 @@ update_keysig_packet( PKT_signature **ret_sig,
|
|||
void *opaque)
|
||||
{
|
||||
PKT_signature *sig;
|
||||
int rc=0, digest_algo;
|
||||
int rc = 0;
|
||||
int digest_algo;
|
||||
gcry_md_hd_t md;
|
||||
|
||||
if ((!orig_sig || !pk || !pksk)
|
||||
|
@ -1589,7 +1590,7 @@ update_keysig_packet( PKT_signature **ret_sig,
|
|||
else
|
||||
digest_algo = orig_sig->digest_algo;
|
||||
|
||||
if ( gcry_md_open (&md, orig_sig->digest_algo, 0 ) )
|
||||
if ( gcry_md_open (&md, digest_algo, 0 ) )
|
||||
BUG ();
|
||||
|
||||
/* Hash the public key certificate and the user id. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue