Hi,

 

I'm currently using OpenSSL to generate SMIME message, but the message
doesn't seem to conform to MIME specification
(http://www.faqs.org/rfcs/rfc1521.html). 

 

According to MIME specification section 7.2.1, it says that the
encapsulation boundary must be preceded with one CRLF and followed with
one CRLF or two CRLFs, also the body part must be ended with two CRLFs,
but the SMIME message generated by OpenSSL is using "LF"(0A) instead of
"CRLF"(0D0A). 

 

Besides this, the MIME header and MIME body is not separated by two
CRLFs.

 

Do you think it's a bug?

 

Best Regards,

Serena Li

 

========================================================================
====

 

7.2.1.     Multipart:  The common syntax

...

   Note that the encapsulation boundary must occur at the beginning of a
   line, i.e., following a CRLF, and that the initial CRLF is considered
   to be attached to the encapsulation boundary rather than part of the
   preceding part.  The boundary must be followed immediately either by
   another CRLF and the header fields for the next part, or by two
   CRLFs, in which case there are no header fields for the next part
   (and it is therefore assumed to be of Content-Type text/plain).
 
      NOTE: The CRLF preceding the encapsulation line is conceptually
      attached to the boundary so that it is possible to have a part
      that does not end with a CRLF (line break). Body parts that must
      be considered to end with line breaks, therefore, must have two
      CRLFs preceding the encapsulation line, the first of which is part
      of the preceding body part, and the second of which is part of the
      encapsulation boundary.
 

Reply via email to