I using the libeay crypto library to verify a PKCS 7 signed object, but it
fails to verify because the message hash authenticated attribute is not
being picked up.

I use d2i_PKCS7
to convert the signed data into internal form,
then p7bio=PKCS7_dataInit(p7,NULL)

and then use PKCS7_signatureVerify to verify each of the Signer Info.

The verify fails because the PKCS7_digest_from_attributes(sk) call in
PKCS7_signatureVerify fails to locate the P7 authenticated attribute
containing the message hash.

It looks as though the object identified name is not set up in the internal
representation of the Message Hash attribute.

Is there something that should be done to set up the object identifiers?

Can anyone help?

Thanks

Nick

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to