Le 2020-01-07 16:55, Tim Rühsen a écrit :
On 1/7/20 2:14 PM, Daniel Stenberg via curl-library wrote:
On Tue, 7 Jan 2020, Thierry HUCAHRD wrote:

If I use libcurl with GnuTLS I am thread-safe, even in a plugin?

It depends.

If you use GnuTLS from before 3.3.0, gnutls_global_init() needs to be
called by libcurl at init time and that function is documented to not be
thread safe.

For GnuTLS 3.3.0 and later I *suspect* it inits itself in a thread-safe
manner. Their docs isn't very clear on this subject:
https://gnutls.org/manual/html_node/Initialization.html#Initialization

Created https://gitlab.com/gnutls/gnutls/issues/900 :-)
Thanks Tim,

Nikos' answer (on GnuTls: https://gitlab.com/gnutls/gnutls/issues/900)
implies that if a program doesn't call curl_global_init,
and curl_easy_cleanup doesn't call it either. Then libcurl would be thread-safe.

Regards, Tim
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to