]> granicus.if.org Git - curl/commit
openssl: fix CURLINFO_SSL_VERIFYRESULT
authorGaurav Malhotra <malhotrag@gmail.com>
Tue, 6 Sep 2016 19:09:35 +0000 (00:39 +0530)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 6 Sep 2016 20:17:37 +0000 (16:17 -0400)
commit8e176a7c799749af50df057c1bf63f1a6afb7dd5
tree111b4e6a0a440fc6c3606cc5b14c1fc6c5704446
parent022dbdb8ac07379fa9cc2cbb3eba503b7f77a6ed
openssl: fix CURLINFO_SSL_VERIFYRESULT

CURLINFO_SSL_VERIFYRESULT does not get the certificate verification
result when SSL_connect fails because of a certificate verification
error.

This fix saves the result of SSL_get_verify_result so that it is
returned by CURLINFO_SSL_VERIFYRESULT.

Closes https://github.com/curl/curl/pull/995
lib/vtls/openssl.c