Some working C++ code that I\'m porting from Linux to Windows is failing on windows because SSL_get_verify_result() is returning X509_V_ERR_UNABLE_TO_GET_
I have done it earlier. Hope this helps, if this is exactly what you are looking for.
PCCERT_CONTEXT structure) from Windows Cert store using Crypto APIs.PCCERT_CONTEXT->pbCertEncoded].d2i_X509() method.SSL_CTX_get_cert_store() method.X509_STORE_add_cert() method.