aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2012-12-19 10:47:23 +0000
committerWerner Koch <[email protected]>2012-12-19 10:47:23 +0000
commitd23ec86095714d388acac14b515445fe69f019e9 (patch)
treea8c0e9f4f7967f1d068039a85c2c53b8ba3f68b0
parentgpg: Suppress "public key already present" in quiet mode. (diff)
downloadgnupg-d23ec86095714d388acac14b515445fe69f019e9.tar.gz
gnupg-d23ec86095714d388acac14b515445fe69f019e9.zip
gpg: Make commit 258192d4 actually work
* g10/sign.c (update_keysig_packet): Use digest_algo.
-rw-r--r--g10/sign.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/g10/sign.c b/g10/sign.c
index a464bb6e9..6cccfed66 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -1504,7 +1504,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 || !sk)
@@ -1517,7 +1518,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. */