From d4b41af00d2cee605499381395af3c19ba2a3081 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 29 Mar 2004 05:56:39 +0000 Subject: get the content-type off of the multipart-signed, not its container. This 2004-03-29 Not Zed * camel-gpg-context.c (gpg_verify): get the content-type off of the multipart-signed, not its container. This seems wrong ... but might fix #56084. svn path=/trunk/; revision=25218 --- camel/camel-gpg-context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camel/camel-gpg-context.c') diff --git a/camel/camel-gpg-context.c b/camel/camel-gpg-context.c index 9f55fc4b65..130610f642 100644 --- a/camel/camel-gpg-context.c +++ b/camel/camel-gpg-context.c @@ -1370,9 +1370,9 @@ gpg_verify (CamelCipherContext *context, CamelMimePart *ipart, CamelException *e CamelStream *istream = NULL; CamelMultipart *mps; - ct = camel_mime_part_get_content_type(ipart); - tmp = camel_content_type_param(ct, "protocol"); mps = (CamelMultipart *)camel_medium_get_content_object((CamelMedium *)ipart); + ct = ((CamelDataWrapper *)mps)->mime_type; + tmp = camel_content_type_param(ct, "protocol"); if (!camel_content_type_is(ct, "multipart", "signed") || !CAMEL_IS_MULTIPART_SIGNED(mps) || tmp == NULL -- cgit v1.2.3