Compatibility with OpenSSL before 1.1.

This commit is contained in:
Marcel Keller
2018-11-05 19:10:39 +11:00
parent c6e5a5bc23
commit d75518aa0f
2 changed files with 4 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}