aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-gpg-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-gpg-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-gpg-context.c')
-rw-r--r--camel/camel-gpg-context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 7f7a493bce..fabf3495da 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -1621,6 +1621,7 @@ gpg_decrypt(CamelCipherContext *context, CamelMimePart *ipart, CamelMimePart *op
camel_stream_filter_add (CAMEL_STREAM_FILTER (filtered_stream), crlf_filter);
camel_object_unref (crlf_filter);*/
ostream = camel_stream_mem_new();
+ camel_stream_mem_set_secure((CamelStreamMem *)ostream);
gpg = gpg_ctx_new (context->session);
gpg_ctx_set_mode (gpg, GPG_CTX_MODE_DECRYPT);