From 0a3341dda86ee8068183aec18289e8a70afea709 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 13 Jul 2004 04:05:10 +0000 Subject: ** This is no guarantee of security, but its just a helper to prevent old 2004-07-09 Not Zed ** 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 ** 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 --- camel/camel-smime-context.c | 1 + 1 file changed, 1 insertion(+) (limited to 'camel/camel-smime-context.c') 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(); -- cgit v1.2.3