curl / Mailing Lists / curl-library / Single Mail

curl-library

RE: Alternate for CURLOPT_SSL_CTX_FUNCTION in gnuTLS

From: Swamy J-S via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 25 Oct 2018 08:34:08 +0000

Hi Daniel,

Can I know other alternate options available for same functionality as CURLOPT_SSL_CTX_FUNCTION in gnuTLS??

My code is as below:
curl_easy_setopt(Config->hHandle->curl, CURLOPT_SSL_CTX_FUNCTION, *SSLCallBackFunction); which returns CURLE_NOT_BUILT_IN error for gnuTLS in LINUX.

SSLCallBackFunction is a function which I defined. In SSLCallBackFunction, we load Client Certificate, Key and Server CA Certificate in to SSL context(SSL_CTX_DATA) and function in to SSL_CTX_FUNCTION

Thanks and Regards,
SWAMY J S

-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Thursday, October 25, 2018 12:13 PM
To: Swamy J-S via curl-library <curl-library_at_cool.haxx.se>
Cc: Swamy J-S <swamy.j-s_at_in.abb.com>
Subject: Re: Alternate for CURLOPT_SSL_CTX_FUNCTION in gnuTLS

CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

On Thu, 25 Oct 2018, Swamy J-S via curl-library wrote:

> As this CURL option is not supported in gnuTLS am getting
> CURLE_NOT_BUILT_IN error.
>
> Is there any alternate option available for "CURLOPT_SSL_CTX_FUNCTION"
> in gnuTLS ? If not available how to proceed ??

For GnuTLS backend users, you simply have to stick to the other options libcurl provides. Or work on implementing CURLOPT_SSL_CTX_FUNCTION for GnuTLS as well!

--
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-25