cURL / Mailing Lists / curl-library / Single Mail


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

From: Daniel Stenberg <>
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.

List admin:
Received on 2014-02-20