[git] GpgOL - branch, master, updated. gpgol-2.3.2-11-gdfd9fa3

by Andre Heinecke cvs at cvs.gnupg.org
Wed Jan 9 10:10:07 CET 2019


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 extension for MS Outlook".

The branch, master has been updated
       via  dfd9fa3c85cd51353314d5da73587ed4fa54b3ab (commit)
      from  085ad582eb944625e2e0f56b2569ef3317cf167c (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 dfd9fa3c85cd51353314d5da73587ed4fa54b3ab
Author: Andre Heinecke <aheinecke at gnupg.org>
Date:   Wed Jan 9 10:07:26 2019 +0100

    Fix tooltip for bad signature
    
    * src/mail.cpp (Mail::getCryptoDetails_o): Handle bad signature
    explicitly.
    
    --
    Otherwise the code would run into the key error checks and
    would note wrongls that the UID does not match.
    
    GnuPG-Bug-Id: T4299

diff --git a/src/mail.cpp b/src/mail.cpp
index cb87e81..fe4a106 100644
--- a/src/mail.cpp
+++ b/src/mail.cpp
@@ -2818,7 +2818,12 @@ Mail::getCryptoDetails_o ()
       /* First the general stuff. */
       if (m_sig.summary() & Signature::Summary::Red)
         {
-          message += _("The signature is invalid: \n");
+            message += _("The signature is invalid: \n");
+            if (m_sig.status().code() == GPG_ERR_BAD_SIGNATURE)
+              {
+                message += std::string("\n") + _("The signature does not match.");
+                return message;
+              }
         }
       else if (m_sig.summary() & Signature::Summary::SysError ||
                m_verify_result.numSignatures() < 1)

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

Summary of changes:
 src/mail.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG extension for MS Outlook
http://git.gnupg.org




More information about the Gnupg-commits mailing list