aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-smime-context.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-07-13 12:05:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-07-13 12:05:10 +0800
commit0a3341dda86ee8068183aec18289e8a70afea709 (patch)
treea11521a6cfe1b4960307123582b929c1a0516da7 /camel/camel-smime-context.c
parentae2cc62f2c4e1a4476e77afa853d3c1563c8234f (diff)
downloadgsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar.gz
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar.bz2
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar.lz
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar.xz
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.tar.zst
gsoc2013-evolution-0a3341dda86ee8068183aec18289e8a70afea709.zip
** This is no guarantee of security, but its just a helper to prevent old
2004-07-09 Not Zed <NotZed@Ximian.com> ** This is no guarantee of security, but its just a helper to prevent old memory accidentally being included/used elsewhere. * camel-smime-context.c (sm_decrypt): mark the output stream 'secure'. * camel-gpg-context.c (gpg_decrypt): set the output stream to secured, so we automagically blank it out on finalise. * camel-stream-mem.c (camel_stream_mem_set_secure): set the memory-stream 'secured', all we do at the moment is blank out the buffer on finalise. (camel_stream_mem_set_byte_array, camel_stream_mem_finalize): clear memory if owner and secured. kill dead comment. (clear_mem): utilitiy to set memory to 0xABADF00D 2004-07-08 Not Zed <NotZed@Ximian.com> ** See bug #61186. * camel-cipher-context.c (camel_cipher_sign): (camel_cipher_verify, camel_cipher_encrypt, camel_cipher_decrypt): Add preliminary progress reporting. svn path=/trunk/; revision=26629
Diffstat (limited to 'camel/camel-smime-context.c')
-rw-r--r--camel/camel-smime-context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-smime-context.c b/camel/camel-smime-context.c
index 94ad6de69c..019d16d1d9 100644
--- a/camel/camel-smime-context.c
+++ b/camel/camel-smime-context.c
@@ -953,6 +953,7 @@ sm_decrypt(CamelCipherContext *context, CamelMimePart *ipart, CamelMimePart *opa
this api to do this ... */
ostream = camel_stream_mem_new();
+ camel_stream_mem_set_secure((CamelStreamMem *)ostream);
/* FIXME: stream this to the decoder incrementally */
istream = (CamelStreamMem *)camel_stream_mem_new();