cURL / Mailing Lists / curl-library / Single Mail

curl-library

In TLS v1.1 X509_STORE_CTX_get_current_cert always returning NULL

From: puneet bist <bist.puneet_at_gmail.com>
Date: Thu, 24 Sep 2015 11:49:14 +0530

Hi,

I was earlier using SSL 0.9.8 with curl 7.39.0.
Server used TLSv1.0 for communication.
I used " curl_easy_setopt(curl_handle, CURLOPT_SSL_CTX_FUNCTION,
ctx_callback);" for self-signed certificates fingerprint matching.

In callback function X509_STORE_CTX_get_current_cert always gave the
certificate which i used to extract the fingerprint.
It was working fine.

Now i builded curl 7.39.0 with openssl 1.0.2d and Server used TLSv1.1 for
communication.
But X509_STORE_CTX_get_current_cert always returning NULL.
So i am not able to check the fingerprint .

Can anyone help me out?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-09-24