Sergei Khomiouk wrote:
> 
> Hello,
> 
> Verifying certificate via X509_verify_cert() function I got call
> of my verify_callback function twise and in each case errorcode==0
> In first case I got some CA certificate, in second - certificate to check.
> Why callback calls when all Ok?

This is so the callback can override the OK and signal an error. An
example might be a callback that checks the certificates revocation
status. 

Steve.
-- 
Dr Stephen N. Henson. UK based freelance Cryptographic Consultant. 
For info see homepage at http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED]
NOTE NEW (13/12/98) PGP key: via homepage.


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

Reply via email to