Re: decryption failed
- From: Peter Bloomfield <peterbloomfield bellsouth net>
- To: Kacper Wysocki <kacperw online no>
- Cc: balsa-list <balsa-list gnome org>
- Subject: Re: decryption failed
- Date: Tue, 07 Jun 2005 11:46:17 +0000
On 06/07/2005 01:18:35 AM, Kacper Wysocki wrote:
Hey all, long time no post.
I recently rebuilt my balsa from CVS. It's been rock solid for
the past two months, but I was after the 2.3.3 release, as I
wanted to keep up to date. On newer builds I get the following
messages when opening a pgp-encrypted part:
Hi Kacper!
Could you try the attached patch?
Thanks!
Peter
Index: libbalsa/rfc3156.c
===================================================================
RCS file: /cvs/gnome/balsa/libbalsa/rfc3156.c,v
retrieving revision 1.32
diff -u -r1.32 rfc3156.c
--- libbalsa/rfc3156.c 24 May 2005 08:19:12 -0000 1.32
+++ libbalsa/rfc3156.c 7 Jun 2005 11:43:21 -0000
@@ -584,6 +584,7 @@
#ifdef HAVE_SMIME
gboolean smime_signed = FALSE;
#endif
+ GMimeStream *stream;
/* paranoia checks */
g_return_val_if_fail(body != NULL, body);
@@ -646,6 +647,8 @@
_("Enter passphrase to decrypt message"));
}
+ stream = libbalsa_message_stream(body->message);
+ libbalsa_mime_stream_shared_lock(stream);
if (protocol == GPGME_PROTOCOL_OpenPGP)
mime_obj =
g_mime_multipart_encrypted_decrypt(GMIME_MULTIPART_ENCRYPTED(body->mime_part),
@@ -668,6 +671,8 @@
GMIME_CIPHER_CONTEXT(ctx),
&error);
#endif
+ libbalsa_mime_stream_shared_unlock(stream);
+ g_object_unref(stream);
/* check the result */
if (mime_obj == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]