Hi,

The documentation for PKCS7_verify says:

       PKCS7_verify() returns 1 for a successful verification and zero or a
       negative value if an error occurs.

And in apps/smime.c there is this code:

                if (PKCS7_verify(p7, other, store, indata, out, flags))
                        BIO_printf(bio_err, "Verification successful\n");
                else
                        {
                        BIO_printf(bio_err, "Verification failure\n");
                        goto end;
                        }

But looking at the code for PKCS7_verify I can't see a case where
it returns something other than 0 or 1.

Could either the code or the documentation be fixed?


Kurt

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to