Hi, Attached is a patch that enables binary "encoded" S/MIME signatures and encryption in OpenSSL smime-module. Messages can be signed and encrypted in binary form using the new "-transenc binary" command line option.
This patch includes the "openssl smime -verify on binary files" patch submitted by Robert Reitenbach. http://www.aet.tu-cottbus.de/rt2/Ticket/Display.html?id=828 In addition to the changes in the older patch, the following modifications have been made: apps/smime.c Added handling for the transenc parameter. crypto/pkcs7/pk7_mime.c New functions BINARY_write_PKCS7 and BINARY_read_PKCS7. crypto/pkcs7/pkcs7.h New flag PKCS7_TRANSFER_ENCODING_BINARY. New function codes PKCS7_F_BINARY_READ_PKCS7 and PKCS7_F_BINARY_WRITE_PKCS. crypto/pkcs7/pkcs7err.c Added proper error messages for unsupported content transfer encodings. doc/apps/smime.pod Added documentation for the transenc parameter. Please note that if a Content-Transfer-Encoding header is not present, the content is handled as base64. This is against the RFC but consistent with the functionality of older versions of OpenSSL. Please consider applying this patch to some upcoming version of OpenSSL. Although there are still limitations in handling more complex MIME messages, support for simple binary S/MIME messages would be nice to have in OpenSSL. Best Regards Antti Tapio ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
