mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-09 13:37:58 -05:00
Compatibility with OpenSSL before 1.1.
This commit is contained in:
@@ -18,7 +18,9 @@ template<class T>
|
||||
void* Thread<T>::run_thread(void* thread)
|
||||
{
|
||||
((Thread<T>*)thread)->run();
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
OPENSSL_thread_stop();
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -170,7 +170,9 @@ void* Sub_Main_Func(void* ptr)
|
||||
delete MCp;
|
||||
delete player;
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
||||
OPENSSL_thread_stop();
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user