On Thu, Apr 13, 2006, Brad Hards wrote:

> I'm trying to do detached CMS signatures and verification using the 
> PKCS7_sign() and PKCS7_verify() functions. It appears to work OK, except that 
> my test case for a zero length array fails to verify() - looks like the 
> signature is OK though.
> 
> The documentation suggests that PKCS7_verify() isn't expected to work 
> ("indata 
> cannot be NULL"). Are there any alternative functions that I should be 
> looking at? Or is there some workaround?
> 

Have you tried passing it an empty memory BIO?

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