[git] GPGME - branch, master, updated. gpgme-1.5.4-3-g87d713f

by Matthew Barnes cvs at cvs.gnupg.org
Fri Jun 5 15:05:48 CEST 2015


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 "GnuPG Made Easy".

The branch, master has been updated
       via  87d713ff41454bd08a345c63605f6fc7ac854dd4 (commit)
      from  0d28a696163677d6b34a802b6beddecd805d0fc7 (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 87d713ff41454bd08a345c63605f6fc7ac854dd4
Author: Matthew Barnes <mbarnes at redhat.com>
Date:   Wed Mar 18 17:20:55 2015 -0400

    Set GPGME_SIGSUM_KEY_REVOKED also for gpg.
    
    * src/verify.c (calc_sig_summary): Handle GPG_ERR_CERT_REVOKED.
    
    --
    
    parse_new_sig() handles a revoked key by setting sig->status to
    GPG_ERR_CERT_REVOKED, but then later calc_sig_summary() expects that
    code in sig->validity_reason.
    
    Additional comments added by wk.

diff --git a/src/verify.c b/src/verify.c
index 37b2bd4..84487ee 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -195,6 +195,10 @@ calc_sig_summary (gpgme_signature_t sig)
       sum |= GPGME_SIGSUM_KEY_MISSING;
       break;
 
+    case GPG_ERR_CERT_REVOKED:
+      sum |= GPGME_SIGSUM_KEY_REVOKED;
+      break;
+
     case GPG_ERR_BAD_SIGNATURE:
     case GPG_ERR_NO_ERROR:
       break;
@@ -213,6 +217,9 @@ calc_sig_summary (gpgme_signature_t sig)
       break;
 
     case GPG_ERR_CERT_REVOKED:
+      /* Note that this is a second way to set this flag.  It may also
+         have been set due to a sig->status of STATUS_REVKEYSIG from
+         parse_new_sig.  */
       sum |= GPGME_SIGSUM_KEY_REVOKED;
       break;
 

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

Summary of changes:
 src/verify.c | 7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list