cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Is it possible to connect to a https site without enabling an SSL implementation on top of libCurl?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 20 Dec 2010 12:03:24 -0800

On Mon, Dec 20, 2010 at 07:02:21PM +0000, RHYS TWELVES wrote:
> I am trying to connect to an https:// secure site, but I have a protocol layer
> outside of libCurl which handles the SSL side of things.

libcurl doesn't handle that kind of scenario. It takes care of the SSL protocol
itself, using the SSL helper library for which it was configured (e.g. OpenSSL,
GnuTLS).

> Is it possible to set HTTPS in the setup, so it is in the protocol table
> (curl_easy_setopt(curlHandle, CURLOPT_PROTOCOLS, CURLPROTO_HTTPS);), but not
> have to set the USE_OPENSSL, USE_SSLEAY #defines?

You're mixing run-time options here with compile-time options. You're not
going to be able to do this with a stock libcurl; you'll have to hack the
libcurl source and recompile it first. It's not that difficult to add support
for a new SSL library; take a look at the git commits that were made over the
last few days to add support for the axTLS library.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-20