** Fix for bug #564465
authorMilan Crha <mcrha@redhat.com>
Tue, 31 Mar 2009 11:54:36 +0000 (11:54 +0000)
committerMilan Crha <mcrha@src.gnome.org>
Tue, 31 Mar 2009 11:54:36 +0000 (11:54 +0000)
2009-03-31  Milan Crha  <mcrha@redhat.com>

** Fix for bug #564465

* camel-smime-context.c: (sm_decrypt):
Pass correct body for signature verification.

svn path=/trunk/; revision=10194

camel/ChangeLog
camel/camel-smime-context.c

index e7e75cd..ef65d95 100644 (file)
@@ -1,3 +1,10 @@
+2009-03-31  Milan Crha  <mcrha@redhat.com>
+
+       ** Fix for bug #564465
+
+       * camel-smime-context.c: (sm_decrypt):
+       Pass correct body for signature verification.
+
 2009-03-27  Milan Crha  <mcrha@redhat.com>
 
        ** Fix for bug #569700
index ff8e8c9..b66b6dd 100644 (file)
@@ -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"));