On Wed, 13 Dec 2017, Krishnaraj wrote:

https://www.openssl.org/docs/man1.1.0/crypto/X509_STORE_CTX_get_error.html

I had read this function. However it is returning the "/current_cert/" instead of "/cert/" in ctx.  I guess current_cert is assigned with cert in case of error only.  Since we are registering the callback, whether any error condition will be occured ?

Sure, but that man page I linked to also describes other functions so I was sort of hoping that would get you started in trying out what works for you.

X509_STORE_CTX_get0_cert() sounds like it might be the better choice.

--

 / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to