cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Libxurl use only TLSv1_2

From: Nick Zitzmann <nick_at_chronosnet.com>
Date: Tue, 30 Apr 2013 12:57:36 -0600

On Apr 30, 2013, at 12:32 PM, Indtiny s <indtiny_at_gmail.com> wrote:

> To do this I went through the openssl , to set this in the realtime I need to use openssl context
>
> SSL_CTX_set_options() with an argument of:
> SSP_OP_NO_SSLv2|
> SSL_OP_NO_SSLv3|
> SSL_OP_NO_TLSv1|
> SSL_OP_NO_TLSv1_1
>
> So how to call this from the libcurl code or is there any alternative to enable this using curl set options .

Use the CURLOPT_SSL_CTX_FUNCTION option to curl_easy_setopt(). Check the man page for details.

Nick Zitzmann
<http://www.chronosnet.com/>

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