On Tue, Jan 31, 2006, Chevalier, Victor T. wrote:

> Hello,
> I am trying to obtain a MIME version of an S/MIME message...I can sign
> and verify e-mail messages with the libraries provided.  However when I
> don't want to verify and I just want to receive the text with MIME
> headers, it fails.  It works fine when there is a valid certificate, but
> if I don't have a valid certificate/or don't use a certificate, it
> returns 0.  I just want to view it in NON-S/MIME I am not concerned
> about the signature, because that works...
> 
> Here is the function I am trying to use:
> cout << PKCS7_verify(pkcs7, NULL, NULL, pkcs7BIO, outBIO,
> PKCS7_NOVERIFY|PKCS7_NOSIGS|PKCS7_TEXT) <<endl;
> 
> I get the following errors from ERR:
> SMIME_text:invalid mime type: pk7_mime.c:348:type: multipart/mixed
> PKCS7_verify:smime text error:pk7_smime.c:250

As the docs say PKCS7_TEXT expects text headers. If you that isn't true don't
use that flag.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to