From 8589b5f6f3ad1f49f1738bc86f937dbe06ac5956 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Tue, 31 Mar 2009 11:54:36 +0000 Subject: [PATCH] ** Fix for bug #564465 2009-03-31 Milan Crha ** Fix for bug #564465 * camel-smime-context.c: (sm_decrypt): Pass correct body for signature verification. svn path=/trunk/; revision=10194 --- camel/ChangeLog | 7 +++++++ camel/camel-smime-context.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index e7e75cd..ef65d95 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2009-03-31 Milan Crha + + ** Fix for bug #564465 + + * camel-smime-context.c: (sm_decrypt): + Pass correct body for signature verification. + 2009-03-27 Milan Crha ** Fix for bug #569700 diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c index ff8e8c9..b66b6dd 100644 --- a/camel/camel-smime-context.c +++ b/camel/camel-smime-context.c @@ -1179,7 +1179,8 @@ sm_decrypt(CamelCipherContext *context, CamelMimePart *ipart, CamelMimePart *opa camel_data_wrapper_construct_from_stream((CamelDataWrapper *)opart, ostream); if (NSS_CMSMessage_IsSigned(cmsg)) { - valid = sm_verify_cmsg(context, cmsg, NULL, ex); + camel_stream_reset (ostream); + valid = sm_verify_cmsg (context, cmsg, ostream, ex); } else { valid = camel_cipher_validity_new(); valid->encrypt.description = g_strdup(_("Encrypted content")); -- 2.7.4