Hi all,

Iam using a certificate verification callback function as follows

SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER, cert_verify_cb);

In the callback function, in addition to the standard certificate
verification done by OpenSSL, i need to check the subject-name
of the peer certificate.
Since the callback function is called for every certificate in the
certificate chain, from the parameter X509_STORE_CTX *,
how do I know if the current certificate is the peer certificiate?

Any inputs/pointers will be greatly appreciated.

thanks,
Krishna


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

Reply via email to