aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-gpg-context.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-11-14 07:17:31 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-11-14 07:17:31 +0800
commit2699c4c41f9bfe08f6b69c982a7014f577ee0786 (patch)
tree306c1cf35b74ba9a5750834ea76ce0767b07ea19 /camel/camel-gpg-context.c
parentcac6efa61f999754fb2832b3600c89b3b5f9d96d (diff)
downloadgsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar.gz
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar.bz2
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar.lz
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar.xz
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.tar.zst
gsoc2013-evolution-2699c4c41f9bfe08f6b69c982a7014f577ee0786.zip
Remove mempool code, we use the stuff in e-util. (PRESERVE_HEADERS): new
2003-11-13 Not Zed <NotZed@Ximian.com> * camel-mime-parser.c: Remove mempool code, we use the stuff in e-util. (PRESERVE_HEADERS): new compile option, if on, we preserve headers and folding exactly rather than unfolding all input. THIS BREAKS EVERYTHING right now, so don't turn it on. * camel-gpg-context.c (gpg_decrypt): reset the input memstream before passing it to the gpg engine. * tests/smime/pgp-mime.c (main): redirect /dev/null to stdin so it doesn't hang waiting for input. (main): removed from build - this tests multipart/signed explictly, but now the details of this is handled directly by the cipher context. * tests/smime/pgp.c (main): fixes for api changes. (main): redirect /dev/null to stdin so it doesn't hang waiting for input. * tests/message/test1.c (main): update for api changes. * camel-smime-context.c (sm_verify): look at the content object's mime type, not the container's type. svn path=/trunk/; revision=23343
Diffstat (limited to 'camel/camel-gpg-context.c')
-rw-r--r--camel/camel-gpg-context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c
index 71b9106e10..87cf1b8647 100644
--- a/camel/camel-gpg-context.c
+++ b/camel/camel-gpg-context.c
@@ -1569,6 +1569,8 @@ gpg_decrypt(CamelCipherContext *context, CamelMimePart *ipart, CamelMimePart *op
istream = camel_stream_mem_new();
camel_data_wrapper_write_to_stream(camel_medium_get_content_object((CamelMedium *)ipart), istream);
+ camel_stream_reset(istream);
+
/* TODO: de-canonicalise end of lines? */
/*stream = camel_stream_mem_new ();
filtered_stream = (CamelStream *) camel_stream_filter_new_with_stream (stream);