"Hellan,Kim KHE" wrote:
> 
> Well.....
> If I set "flags = PKCS7_BINARY" then SMIME_crlf_copy() in PKCS7_sign() will
> not add the "....plain/text...." text headers.
> This seems to work, but I'm not sure if that is the right way to do it?
> 

If you look at apps/smime.c the option -text is documented as adding
plain text headers. The code adds the flag PKCS7_TEXT. Therefore if you
don't want text/plain headers don't use the PKCS7_TEXT option.

If you set PKCS7_BINARY the input file is included intact, otherwise it
is converted to "canonical" EOL format i.e. CR+LF.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to