cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: how to use libcurl with a proprietary ssl library?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Feb 2014 13:48:27 +0100 (CET)

On Thu, 20 Feb 2014, Bruno BARRUCAND wrote:

> I want to use libcurl with a proprietary ssl library (shared object). What
> should I do?

Add a glue layer for it so that it works with the internal vtls API.

See lib/vtls/openssl.h how it is done for OpenSSL, lib/vtls/gtls.h for the
GnuTLS version and lib/vtls/nssg.h for NSS and so on.

Basically everything in libcurl calls the Curl_ssl_ functions in
lib/vtls/vtls.c which then in turn calls the correct backend-specific code.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-02-20