From e2919e15d1880c1ef76e5a2ffdd36f428dc05946 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 10 Nov 2003 13:00:07 +0000 Subject: changed for cipher context api changes. ditto. 2003-11-10 Not Zed * em-format-html.c (em_format_html_multipart_signed_sign): changed for cipher context api changes. * em-format.c (emf_multipart_signed): ditto. 2003-11-07 Not Zed * mail-config.glade: added security_information_dialog (probably temporarily in this file). * em-format.c (em_format_is_attachment): also treat pkcs7-mime as non-attachment. (emf_application_xpkcs7mime): no longer need to worry about scanning the part. svn path=/trunk/; revision=23243 --- mail/em-format-html.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'mail/em-format-html.c') diff --git a/mail/em-format-html.c b/mail/em-format-html.c index 09f45d8ceb..c2d2a153fd 100644 --- a/mail/em-format-html.c +++ b/mail/em-format-html.c @@ -909,7 +909,6 @@ static const struct { void em_format_html_multipart_signed_sign(EMFormat *emf, CamelStream *stream, CamelMimePart *part) { - CamelMimePart *spart; CamelMultipartSigned *mps; CamelCipherValidity *valid = NULL; CamelException ex; @@ -924,11 +923,8 @@ em_format_html_multipart_signed_sign(EMFormat *emf, CamelStream *stream, CamelMi /* FIXME: This sequence is also copied in em-format-html.c */ - spart = camel_multipart_get_part((CamelMultipart *)mps, CAMEL_MULTIPART_SIGNED_SIGNATURE); camel_exception_init(&ex); - if (spart == NULL) { - message = _("No signature present"); - } else if (emf->session == NULL) { + if (emf->session == NULL) { message = _("Session not initialised"); } else { CamelCipherContext *cipher = NULL; @@ -942,7 +938,7 @@ em_format_html_multipart_signed_sign(EMFormat *emf, CamelStream *stream, CamelMi if (cipher == NULL) { message = _("Unsupported signature format"); } else { - valid = camel_multipart_signed_verify(mps, cipher, &ex); + valid = camel_cipher_verify(cipher, part, &ex); camel_object_unref(cipher); if (valid) { good = camel_cipher_validity_get_valid(valid)?1:0; -- cgit v1.2.3