[evolution-data-server] Bug #608620 - Use CRLF in signed & encrypted S/MIME messages
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #608620 - Use CRLF in signed & encrypted S/MIME messages
- Date: Tue, 27 Apr 2010 14:49:39 +0000 (UTC)
commit deca4192c84f1f1e468a1227209f3e63b7d05ffe
Author: dev+gnome <dev+gnome seantek com>
Date: Tue Apr 27 16:49:01 2010 +0200
Bug #608620 - Use CRLF in signed & encrypted S/MIME messages
camel/camel-smime-context.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c
index 515b5fb..863d1b7 100644
--- a/camel/camel-smime-context.c
+++ b/camel/camel-smime-context.c
@@ -1043,10 +1043,9 @@ smime_context_encrypt (CamelCipherContext *context,
}
/* FIXME: Stream the input */
- /* FIXME: Canonicalise the input? */
buffer = g_byte_array_new ();
mem = camel_stream_mem_new_with_byte_array (buffer);
- camel_data_wrapper_write_to_stream ((CamelDataWrapper *)ipart, mem);
+ camel_cipher_canonical_to_stream (ipart, CAMEL_MIME_FILTER_CANON_CRLF, mem);
if (NSS_CMSEncoder_Update (enc, (gchar *) buffer->data, buffer->len) != SECSuccess) {
NSS_CMSEncoder_Cancel (enc);
g_object_unref (mem);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]