<moved to openssl-users>
"Hellan,Kim KHE" wrote:
>
> I have succeeded in loading a MIME file by using the following commands:
> <snip>
> BIO* bioIndata;
> PKCS7* p7 = SMIME_read_PKCS7(spBio, &bioIndata);
>
> I am able to extract signers certificate, but how do I extract the signed
> text?
> I have tried looking in the smime.c source, but I can't find how this is
> done.
>
Using PKCS7_verify() this verifies the signature and extracts the
content.
> Also....
> What is the '&bioIndata' parameter used for? It always seems to be NULL.
>
It is the signed part of a multipart/signed message, it should be passed
to PKCS7_verify() and it can then handle multipart/signed types
transparently.
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]