Using libcurl 7.24.0 bundled on OSX 10.8.5

CURLOPT_SSL_VERIFYPEER 1
CURLOPT_SSL_VERIFYHOST 2
CURLOPT_CERTINFO 1

When a connection fails with CURLE_SSL_CACERT I attempt to get the
certificate information via CURLINFO_CERTINFO and then present those
details to the user. Unfortunately, curl_certinfo num_of_certs is
always 0 in this case.  If I am able to connect either due to a valid
cert or disabling the verification checks I can then fetch this
information. I was able to reproduce this behavior with the certinfo.c
example.

Is this expected behavior?
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to