[git] GnuPG - branch, master, updated. gnupg-2.1.15-38-g3e67b50

by Werner Koch cvs at cvs.gnupg.org
Thu Sep 1 12:54:53 CEST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  3e67b50490aef087b5769bb35145d23f6657780f (commit)
      from  4cbd2a690c5e5ed2dff49c1f4fc867b31fca689a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3e67b50490aef087b5769bb35145d23f6657780f
Author: Werner Koch <wk at gnupg.org>
Date:   Thu Sep 1 12:41:27 2016 +0200

    gpg: Copy the correct digest for use by TOFU.
    
    * g10/mainproc.c (do_check_sig): Use the current digest algo.
    --
    
    Note that the digest context may have several algos enabled, which is
    is case if keys with different hash preferences signed the data.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/mainproc.c b/g10/mainproc.c
index 2626189..f861a3e 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -938,7 +938,7 @@ do_check_sig (CTX c, kbnode_t node, int *is_selfsig,
 
   if (md_good)
     {
-      unsigned char *buffer = gcry_md_read (md_good, 0);
+      unsigned char *buffer = gcry_md_read (md_good, sig->digest_algo);
       sig->digest_len = gcry_md_get_algo_dlen (map_md_openpgp_to_gcry (algo));
       memcpy (sig->digest, buffer, sig->digest_len);
     }

-----------------------------------------------------------------------

Summary of changes:
 g10/mainproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list