cURL / Mailing Lists / curl-library / Single Mail

curl-library

Threads & OpenSSL - Mutex what? Examples?

From: John D <cononet_at_gmail.com>
Date: Thu, 26 Feb 2009 16:04:10 -0800

Hello

I would like to know what part of the an easy set operation that occurs in a
thread
which involves libcurl accessing an SSL url needs a mutex.

Is there any code out there that actually shows a

CRYPTO_set_locking_callback & CRYPTO_set_id_callback
specifically in relation to the use with curl_easy_setopt code.

It's understandable to not provide a specific thread safe mechanism given
the choice of ssl options,
but not having anything short of a slung together example that does not
really address the cause of the problem does not fly.

Again and please; How do I specifically avoid crashes when using libcurl
built with OpenSSL to access an HTTPS page using multiple threads.

Thank you,

john
Received on 2009-02-27