Hi All
I am using SSL_CTX_set_cert_verify_callback(ctx, callback, (void *)arg)
API to register the callback function for certificate verification.
However I need to set the mode (SSL_VERIFY_PEER) for SSL Context.

I am using below code to set mode and callback function. Is it right way
of doing it or there are someother way of seeting the mode
(SSL_VERIFY_PEER). 

/* Set Mode*/
SSL_CTX_set_verify (ctx, SSL_VERIFY_PEER, NULL);

/* Set callback */
SSL_CTX_set_cert_verify_callback(ctx, sslCertVerifyCallBack, (void
*)this);

Kamal
Cisco, Bangalore
India

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

Reply via email to