"Wang, Kate" wrote: > > Hi all, > > In my application, I called PKCS7_encrypt() to encrypt a document. When I > call > PEM_write_bio_PKCS7(out, p7) to write the encrypted document out to a file, > the encrypted content always > has > --- BEGIN PKCS7 --- > --- END PKCS7 --- > > wrapped arround it. And when I call PKCS7_decrypt(), it always need those > headers there if the format is in PEM. > > Does openssl has another set of functions which can deals with BASE64 > encoded PKCS7 content without those headers? >
You can use a base64 filter BIO and handle things that way. The S/MIME code does this in its MIME parser. 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 Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
