cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Getting SSL context by curl_easy_getinfo()

From: amit paliwal <amit.ambitions_at_gmail.com>
Date: Thu, 13 Jan 2011 17:51:35 -0500

On Thu, Jan 13, 2011 at 4:41 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 13 Jan 2011, amit paliwal wrote:
>
> I have seen that curl_easy_getinfo() provides several options to fetch
>> relevant information. I was just wondering why it does not provide any
>> option to fetch the SSL context, i.e. SSL pointer, from SSL_ctx.
>>
>> Is there any particular reason for it? this might be a good feature for
>> implementing proprietary stuffs.
>>
>
> Sure, the primary reason is probably:
>
> Those are all OpenSSL-specific pointers and libcurl can use any out of
> seven different SSL libraries.
>
> And also, for those who use libcurl built with OpenSSL there is already the
> CURLOPT_SSL_CTX_FUNCTION curl_easy_setopt option which offers something
> similar to what you ask for.
>
> Reply: Thanks, it will help.

> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-- 
Regards,
Amit

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-01-13