On Thu, Feb 13, 2003, openssl utilisateur wrote: > hi > i'm trying to make an application that sign and verify in SMime Format > i can sign text file and then verify the signature but > the problem is when i try to sign a binary file (*.doc per example) , i can > sign this file but when i tried to verify the signature ,the function > SMIME_read_PKCS7 could not extract the PKCS7 structure from the signed file > i tried to set the flags to PKCS7_BINARY (like in smime.c source code) but > i still could not resolve this problem > if any one knows how to resolve that > thanx > >
The standard OpenSSL MIME generator and parser is a primitive thing that doesn't handle binary data properly. You could encode the binary file in MIME format base64 encoded or use the -nodetach option which will then include the data with the PKCS#7 structure and base64 encode the lot. Alternatively you could fix the parser :-) Steve. -- Dr Stephen N. Henson. Core developer of the OpenSSL project: http://www.openssl.org/ Freelance consultant see: http://www.drh-consultancy.demon.co.uk/ Email: [EMAIL PROTECTED], PGP key: via homepage. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
