6.0.0-beta1
9/24/25

[#3017] Inconsitent MIME types in S/MIME-signed e-mail
Summary Inconsitent MIME types in S/MIME-signed e-mail
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester voegele (at) trustsec (dot) de
Created 11/22/2005 (7246 days ago)
Due
Updated 11/23/2005 (7245 days ago)
Assigned 11/22/2005 (7246 days ago)
Resolved 11/23/2005 (7245 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/23/2005 03:09:54 AM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
You have it backward - we actually need to convert all x-pkcs7-* 
content-type parameters to pkcs7-*.  Unfortunately, PHP's 
openssl_pkcs7_* functions are "broken" in this regard so we have to do 
a bit more search/replace to fix this.  This has been fixed in HEAD 
and 3.1.
11/22/2005 05:07:56 PM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
11/22/2005 04:34:14 PM voegele (at) trustsec (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Inconsitent MIME types in S/MIME-signed e-mail
Queue ⇒ Horde Framework Packages
Reply to this comment
Mutt fails to verify S/MIME-signed messages created with IMP.  The 
problem is that the MIME type in the message header is 
"application/pkcs7-signature" while the type of the actual MIME part 
is "application/x-pkcs7-signature".  Note the "x-" in the second 
content type.



  Message header:



  Content-Type: multipart/signed; boundary="=_4uhzrqxgbgn4";

  protocol="application/pkcs7-signature"; micalg="sha1"



  MIME part:



  Content-Type: application/x-pkcs7-signature;

  name="smime.p7s"



I modified Crypt/Crypt/smime.php in the Horde framwork to fix this problem:



-        $smime_part->setContentTypeParameter('protocol', 
'application/pkcs7-signature');

+       $smime_part->setContentTypeParameter('protocol', 
'application/x-pkcs7-signature');



But maybe this bug should better be fixed within IMP.  I don't know.   
Anyway, the content types ought to be consistent.



Regards,

Andreas

Saved Queries