X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=openssl.c;h=0ad9d7db4e7f035dce140365b2b38abc144b6923;hp=5f04c845c6ec1e8b5d837f827233df425033fad4;hb=267c322e02364c331f523ce16bdadb46fd3449f8;hpb=fb3fd5b4ddaf52e19303126ea1bacacc5954d808 diff --git a/openssl.c b/openssl.c index 5f04c845..0ad9d7db 100644 --- a/openssl.c +++ b/openssl.c @@ -60,6 +60,12 @@ void crypt_shutdown(void) #ifdef HAVE_CRYPTO_CLEANUP_ALL_EX_DATA CRYPTO_cleanup_all_ex_data(); #endif +#ifdef HAVE_OPENSSL_THREAD_STOP /* openssl-1.1 or later */ + OPENSSL_thread_stop(); +#else /* openssl-1.0 */ + ERR_remove_thread_state(NULL); +#endif + EVP_cleanup(); } /*