commit 758a6b1256e5b7ce12d91deb5fcffa358ab35ad8
parent fc35f5b0e9d941865faeeb4e19d849b65510a7d6
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Thu, 28 Apr 2016 12:01:10 +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.
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git 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);