From ad284c350543fe2c86d578597d29d82371edca3d Mon Sep 17 00:00:00 2001 From: Not Zed Date: Fri, 3 Dec 2004 03:43:19 +0000 Subject: remove the old camel_multipart_encrypted api. 2004-11-15 Not Zed * e-msg-composer.c (handle_multipart_encrypted): remove the old camel_multipart_encrypted api. svn path=/trunk/; revision=28052 --- composer/e-msg-composer.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index d3cf2f345f..9d0c6e7fa6 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -86,7 +86,7 @@ #include -#include +#include #include #include "e-util/e-dialog-utils.h" @@ -3744,24 +3744,25 @@ handle_multipart_signed (EMsgComposer *composer, CamelMultipart *multipart, int static void handle_multipart_encrypted (EMsgComposer *composer, CamelMultipart *multipart, int depth) { - CamelMultipartEncrypted *mpe = (CamelMultipartEncrypted *) multipart; CamelContentType *content_type; CamelCipherContext *cipher; CamelDataWrapper *content; CamelMimePart *mime_part; CamelException ex; - + CamelCipherValidity *valid; + /* FIXME: make sure this is a PGP/MIME encrypted part?? */ e_msg_composer_set_pgp_encrypt (composer, TRUE); camel_exception_init (&ex); cipher = mail_crypto_get_pgp_cipher_context (NULL); - mime_part = camel_multipart_encrypted_decrypt (mpe, cipher, &ex); - camel_object_unref (cipher); + mime_part = camel_mime_part_new(); + valid = camel_cipher_decrypt(cipher, (CamelMimePart *)multipart, mime_part, &ex); + camel_object_unref(cipher); camel_exception_clear (&ex); - - if (!mime_part) - return; + if (valid == NULL) + return; + camel_cipher_validity_free(valid); content_type = camel_mime_part_get_content_type (mime_part); -- cgit