[Commits] [SCM] claws branch, master, updated. 3.13.2-131-g758a6b1

ticho at claws-mail.org ticho at claws-mail.org
Thu Apr 28 12:02:56 CEST 2016


The branch, master has been updated
       via  758a6b1256e5b7ce12d91deb5fcffa358ab35ad8 (commit)
      from  fc35f5b0e9d941865faeeb4e19d849b65510a7d6 (commit)

Summary of changes:
 src/plugins/pgpcore/pgp_viewer.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 758a6b1256e5b7ce12d91deb5fcffa358ab35ad8
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Thu Apr 28 12:01:10 2016 +0200

    Fix behavior in selecting PGP MIME signature on Windows.
    
    With old argument order, gpgme_op_verify() returned "empty signature"
    error on Windows, for reasons unknown.

diff --git a/src/plugins/pgpcore/pgp_viewer.c b/src/plugins/pgpcore/pgp_viewer.c
index 29a8698..a24b6e0 100644
--- a/src/plugins/pgpcore/pgp_viewer.c
+++ b/src/plugins/pgpcore/pgp_viewer.c
@@ -101,7 +101,11 @@ static void pgpview_show_mime_part(TextView *textview, MimeInfo *partinfo)
 		textview_show_mime_part(textview, partinfo);
 		return;
 	}
-	sigstatus = sgpgme_verify_signature(ctx, sigdata, sigdata, NULL);
+
+	/* Here we do not care about what data we attempt to verify with the
+	 * signature, or about result of the verification - all we care about
+	 * is that we find out ID of the key used to make this signature. */
+	sigstatus = sgpgme_verify_signature(ctx, sigdata, NULL, sigdata);
 	if (!sigstatus || sigstatus == GINT_TO_POINTER(-GPG_ERR_SYSTEM_ERROR)) {
 		g_warning("no sigstatus");
 		textview_show_mime_part(textview, partinfo);

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list