2 The logic in this test is wrong; CRYPTO_set_id_callback is only available
3 if both of those conditions are true.
5 This has been reported to upstream and the patch below is their preferred
6 method to fix it. We should not need our local patch starting with 5.61
9 diff -ur stunnel-5.60.orig/src/sthreads.c stunnel-5.60/src/sthreads.c
10 --- stunnel-5.60.orig/src/sthreads.c 2021-02-10 05:39:36.000000000 +0000
11 +++ stunnel-5.60/src/sthreads.c 2021-11-19 01:54:06.307846225 +0000
13 #if OPENSSL_VERSION_NUMBER>=0x10000000L && OPENSSL_VERSION_NUMBER<0x10100000L
14 CRYPTO_THREADID_set_callback(threadid_func);
16 -#if OPENSSL_VERSION_NUMBER<0x10000000L || !defined(OPENSSL_NO_DEPRECATED)
17 +#if OPENSSL_VERSION_NUMBER<0x10000000L
18 CRYPTO_set_id_callback(stunnel_thread_id);