cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can't get internals pointer on iOS

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 28 Apr 2016 16:50:54 -0400

On 4/28/2016 3:32 AM, Bru Rom wrote:
> > TLS_SESSION should return the in-use SSL pointer. When are you
> trying to retrieve the pointer?
>
> I try 4 combinations:
> TLS_SESSION before culr_easy_perform
> TLS_SESSION after culr_easy_perform
> TLS_SSL_PTR before culr_easy_perform
> TLS_SSL_PTR after culr_easy_perform
>
> With code like:
> const struct curl_tlssessioninfo *info;
> curl_easy_getinfo(curl_handle, CURLINFO_TLS_SESSION, &info);
>
> In all cases result is:
> Printing description of info->backend:
> (curl_sslbackend) backend = CURLSSLBACKEND_OPENSSL
> Printing description of info->internals:
> <nil>

Right. What it returns is the easy handle's in-use connection SSL
pointer, and is meant to be used during curl_easy_perform, eg from your
progress function. I've changed the wording in the doc to reflect that
[1], thanks.

[1]: https://github.com/curl/curl/commit/7028ed6

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-04-28