cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLINFO_TLS_SESSION

From: Yousuke Kimoto <yousuke.kimoto_at_gmail.com>
Date: Wed, 29 Apr 2015 19:00:08 +0900

> If there's an existing application using that pointer it will crash badly

I'm sorry to confuse you.
From the point of an OpenSSL user's view, SSL object will be useful rather than SSL_CTX. Though crash will occur by this change, fixing the crash will be a worth doing.

From point of compatibility view, this change should not be taken. To return SSL handle, a new member should be defined.

> nobody objected or brought up any other suggestions!

Thank you. It became clear.

2015/04/29 15:02、Daniel Stenberg <daniel_at_haxx.se> のメッセージ:

>> On Wed, 29 Apr 2015, Yousuke Kimoto wrote:
>>
>> I'm interested in CURLINFO_TLS_SESSION. It seems that there is no issue to change the value from ctx (SSL_CTX) to handle (SSL).
>
> What do you mean "no issue" ? If there's an existing application using that pointer it will crash badly if we just suddenly return a different pointer.
>
>> By the way, could you explain the reason why did you write such code to return SSL_CTX if you have the detail?
>
> Because the code was made like that and nobody objected or brought up any other suggestions! It has been in the code like this for quite some too without anyone asking or commenting about it.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html

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