evolution-data-server r10194 - trunk/camel



Author: mcrha
Date: Tue Mar 31 11:54:36 2009
New Revision: 10194
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10194&view=rev

Log:
2009-03-31  Milan Crha  <mcrha redhat com>

	** Fix for bug #564465

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



Modified:
   trunk/camel/ChangeLog
   trunk/camel/camel-smime-context.c

Modified: trunk/camel/camel-smime-context.c
==============================================================================
--- trunk/camel/camel-smime-context.c	(original)
+++ trunk/camel/camel-smime-context.c	Tue Mar 31 11:54:36 2009
@@ -1179,7 +1179,8 @@
 	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"));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]