curl-library
Re: Identifying SSL backend
Date: Tue, 22 Sep 2015 17:14:01 +0200 (CEST)
On Tue, 22 Sep 2015, Hemanth Kapila wrote:
> Is there a way to figure out the SSL backend that is being used at runtime?
>
> I understand that a related topic was discussed sometime back[0] but I
> am not clear if it is possible at all?
>
> In particular, is there a way to figure out on OSX, if the SSL backend
> is darwinssl or something else?
>
> On OSX, curl_easy_getinfo with CURLINFO_TLS_SESSION returns 0 (but that is
> expected, I believe).
First, I think we should make sure CURLINFO_TLS_SESSION return the backend
define for them all, independently of if we support the 'internals' or not.
I'll work up a fix for that.
But this of course won't help anyone using existing libcurl versions.
For existing libcurl versions, you can use curl_version_info() and check the
'ssl_version' field of the returned struct. That's unfortunately a string so
it isn't as suitable for comparisons but I think this is the best we can offer
right now.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-09-22