mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
OpenSSL from 1.1.0 is thread safe by default
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
parent
7951a31756
commit
319a31ad81
@ -2771,6 +2771,7 @@ static int ssl_password_cb(char *buf, int size, int flags, void *userdata)
|
||||
return (strlen(pass));
|
||||
}
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER < 0x1010000FL
|
||||
static unsigned long pthreads_thread_id(void)
|
||||
{
|
||||
unsigned long ret;
|
||||
@ -2808,6 +2809,11 @@ static void openssl_thread_setup(void)
|
||||
CRYPTO_set_id_callback(pthreads_thread_id);
|
||||
CRYPTO_set_locking_callback(pthreads_locking_callback);
|
||||
}
|
||||
#else
|
||||
static inline void openssl_thread_setup(void)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
static gpointer openssl_global_init(gpointer arg)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user