curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPS with OPENSOCKETFUNCTION

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 23 Apr 2018 23:11:09 +0200 (CEST)

On Mon, 23 Apr 2018, Kiran P wrote:

> I am getting an error ("Unknown SSL protocol error in connection") when
> trying to send HTTPS requests with CURL. I have OPENSOCKETFUNCTION set to
> open socket to the server. This function even takes care of setting up SSL
> session using OpenSSL.

Setting up session how? I can't see how this callback gives the application
any particular means to provide such info or data to libcurl.

> is there a way to get callbacks for socket read/write

No.

> if there is a way to set SSL context to CURL?

No, I can't think of any way to feed that info to curl. It always sets up and
uses its own contexts (different ones depending on which TLS backend you use).

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