[imp] Encrypted/Signed Smime not displayed
Philipp Faeustlin
philipp.faeustlin at uni-hohenheim.de
Mon Nov 27 16:54:45 UTC 2017
Am 25.11.2017 um 16:26 schrieb Michael J Rubinsky:
>
> Quoting Philipp Faeustlin <philipp.faeustlin at uni-hohenheim.de>:
>
>> Hi there,
>>
>> I have encrypted and signed smime mails out of a Groupwise Client that
>> are not displayed correctly. The signed message is only displayed as
>> attachment "smime.p7m" File.
>>
>> These mails have an encrypted outer section:
>> ---
>> Content-Type: application/x-pkcs7-mime; name=smime.p7m
>> Content-Transfer-Encoding: base64
>> Content-Disposition: attachment;
>> ---
>> Within the encrypted part, there is a signed part with the message as:
>> ---
>> Content-Type: application/pkcs7-mime
>> Content-Transfer-Encoding: base64
>> Content-Disposition: attachment; filename="smime.p7m";
>> ---
>>
>> I think the ASN1 decoding of the decrypted "smime.p7m" file probably
>> doesn't work correct.
>>
>> Because if the signed part is declared as
>> "Content-Type: application/x-pkcs7-mime; name=smime.p7m;
>> smime-type=signed-data", with the smime-type field signed-data, the
>> message is displayed.
>>
>> I researched the code and found a one line hack/work-around to display
>> the messages correctly.
>>
>> I added to the [webdir]/imp/lib/Mime/Viewer/Smime.php the following on
>> line 234:
>> $new_part->setContentTypeParameter('smime-type', 'signed-data');
>>
>> With this line added my problem is solved, but I'm not sure if this is
>> the right solution to this problem. Or the other way round, I can't
>> say what problem this line can cause.
>> Any ideas of a better solution?\
>
> What version of IMP are you using?
>
Imp 6.2.21
Horde_Crypt 2.7.11
The last release via pear.
>>
>> Best regards
>> --
>> Philipp Fäustlin
>>
>> --
>> imp mailing list
>> Frequently Asked Questions: http://wiki.horde.org/FAQ
>> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>
>
>
>
--
Philipp Fäustlin
Universität Hohenheim
Kommunikations-, Informations- und Medienzentrum (630)
IT-Dienste | Abt. Kommunikation, E-Learning u. Print | Mail
Schloss, Westhof Süd | 70599 Stuttgart
Tel.: +49 711 459-22838 | Fax: +49 711 459-23449
https://kim.uni-hohenheim.de/
More information about the imp
mailing list