[git] GnuPG - branch, master, updated. gnupg-2.2.7-221-gb6275f3

by Werner Koch cvs at cvs.gnupg.org
Mon Oct 8 16:24:41 CEST 2018


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  b6275f3bda8edff34274c5b921508567f491ab9c (commit)
      from  79f165d7a8bcc26972712bb0f0cc554d5c3d4e42 (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 b6275f3bda8edff34274c5b921508567f491ab9c
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Oct 8 16:14:17 2018 +0200

    gpg: Fix extra check for sign usage of a data signature.
    
    * g10/sig-check.c (check_signature_end_simple):
    --
    
    Obviously we should not ignore a back signature here.
    
    Fixes-commit: 214b0077264e35c079e854a8b6374704aea45cd5
    GnuPG-bug-id: 4014
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/g10/sig-check.c b/g10/sig-check.c
index 0ec3843..9c32d4d 100644
--- a/g10/sig-check.c
+++ b/g10/sig-check.c
@@ -480,7 +480,8 @@ check_signature_end_simple (PKT_public_key *pk, PKT_signature *sig,
     }
 
   /* For data signatures check that the key has sign usage.  */
-  if (IS_SIG (sig) && !(pk->pubkey_usage & PUBKEY_USAGE_SIG))
+  if (!IS_BACK_SIG (sig) && IS_SIG (sig)
+      && !(pk->pubkey_usage & PUBKEY_USAGE_SIG))
     {
       rc = gpg_error (GPG_ERR_WRONG_KEY_USAGE);
       if (!opt.quiet)

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

Summary of changes:
 g10/sig-check.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list