On Thu, May 13, 2004, Antonio Andr�s Espallardo wrote:

> Hi everybody.In my program I make a pkcs7_sign on a ASN1 message, and after
> that I apply  a pkcs7_encrypt on the signed message. When I try the inverse
> process, the pkcs7_decrypt function decrypt the content from the PKCS#7
> envelopedData structure and store it in a BIO data. My problem is how to
> convert that BIO in a PKCS7 structure, because I'll need to apply a
> PKCS7_verify to see if all went well. (That will be a part of the
> comunication between a client and a server, where the client will sign a
> message and will obtain a enveloped structure of that sign, and then the
> server must decrypt the message and verify the autenticity of the sign).

d2i_PKCS7_bio() will do the trick.

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                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to