Skip to Content.
Sympa Menu

devel - sympa S/MIME encryption fix

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: christian mock <address@concealed>
  • To: address@concealed
  • Subject: sympa S/MIME encryption fix
  • Date: Tue, 27 Aug 2002 13:26:19 +0200

hi,

the following patch makes sympa create correct S/MIME encrypted messages;
without this, netscape has a hard time reading stuff that comes from
outlook and goes thru sympa.

RFC2633 section 3.1 says:

A MIME entity that is the whole message includes only the MIME
headers and MIME body, and does not include the RFC-822 headers.

So I assume the fix is not only correct in practice, but also in theory.

regards,

cm.

--- tools.pl.20020826 Mon Aug 26 17:26:54 2002
+++ tools.pl Mon Aug 26 17:28:25 2002
@@ -462,8 +462,11 @@
if (!open(MSGDUMP, "| $Conf{'openssl'} smime -encrypt -out
$temporary_file -des3 $usercert")) {
&do_log('info', 'Can\'t encrypt message for recipient %s',
$email);
}
- $msg_header->print(\*MSGDUMP);
- printf MSGDUMP "\n%s", $msg_body;
+## don't. netscape 4.7 at least can't parse encrypted stuff that contains
+## a whole header again...
+## $msg_header->print(\*MSGDUMP);
+## printf MSGDUMP "\n%s", $msg_body;
+ printf MSGDUMP "%s", $msg_body;
close(MSGDUMP);

## Get as MIME object


  • sympa S/MIME encryption fix, christian mock, 08/27/2002

Archive powered by MHonArc 2.6.19+.

Top of Page