cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: generic questions about lib-curl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 29 Oct 2005 22:58:04 +0200 (CEST)

On Fri, 28 Oct 2005, Mehmet Fidanboylu wrote:

> 1. I heard people have successfully replaced openSSL with some other library
> within CURL.. How hard is this process? What kind of workload are we looking
> at here? Please assume that the library I want to put in has all the
> required features..

If you're considering using GnuTLS instead of OpenSSL the work is already done
and you can make it happen by using a suitable configure switch.

If you're considering using another SSL library, then I have good news too:
when I added GnuTLS support I converted the SSL layer within libcurl to a
better state more suitable for extending with new libs. See how lib/sslgen.c
provides the generic SSL functions and lib/ssluse.c and lib/gtls.c provide the
SSL-library specific functions. Adding support for a new lib would basically
only mean adding a new file for the SSL-layer specifics and extending
lib/sslgen.c.

> 2. Does libcurl free any strings that are passed in through setopt
> functions? My guess is no even when cleanup is called..

No. You pass strings to libcurl and you should not assume that libcurl
duplicates them but you should keep them around until its done. libcurl of
course frees everything it has allocated.

> 3. Has anyone attempted to replace CURL's timer mechanism? How hard is that?

I don't understand what you mean with the "timer mechanism". Exactly what are
you considering?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-10-29