X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=openssl.c;h=0ad9d7db4e7f035dce140365b2b38abc144b6923;hp=9782b5e23cd0530d521f098d2683dc83230b0c78;hb=df28a60a65e8cee29dc467291414988aa0db727e;hpb=09dbc597fa9661f8dfd96684430531fe6575d26c diff --git a/openssl.c b/openssl.c index 9782b5e2..0ad9d7db 100644 --- a/openssl.c +++ b/openssl.c @@ -57,7 +57,15 @@ void crypt_init(void) 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(); } /*