cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Require help in defining crypto lock callbacks..

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 4 Mar 2012 23:00:47 +0100 (CET)

On Wed, 29 Feb 2012, sukanya c wrote:

> I work for activesync application that use libcurl for client HTTPS
> operations.
>
> In my application, multiple threads are created and each thread use
> different curl session and do curl easy perform for data transfer.
>
> I want to know whether the locking function has to be defined before
> creating each session/thread or is it sufficient to define once for my
> program before libcurl loads.

For the exact requirements and details on how it works or not, you really need
to read the OpenSSL docs, ask their developers or review their code.

We do offer an example source code that uses the callbacks:

  http://curl.haxx.se/libcurl/c/threaded-ssl.html

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-03-04