From 478270efba7454c2049c6221f1ee6d9f5ec7e31b Mon Sep 17 00:00:00 2001 From: Moataz Elmasry Date: Wed, 11 Apr 2018 23:25:21 +0200 Subject: [PATCH] Revert "Cleanup ssl library. No memory leaks. (#143)". Build failing using OpenSSL 1.1.0f This reverts commit 227842f89c919fd2024da336620710b5d9e6dc49. --- src/Mayaqua/Encrypt.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Mayaqua/Encrypt.c b/src/Mayaqua/Encrypt.c index 5ed2d69e..015cdfeb 100644 --- a/src/Mayaqua/Encrypt.c +++ b/src/Mayaqua/Encrypt.c @@ -4040,22 +4040,6 @@ void FreeOpenSSLThreadState() ERR_remove_state(0); } -void FreeSsl() -{ - /* thread-safe cleanup */ - ERR_remove_state(0); - ENGINE_cleanup(); - CONF_modules_unload(1); - - sk_free(SSL_COMP_get_compression_methods()); - - /* global application exit cleanup (after all SSL activity is shutdown) */ - ERR_free_strings(); - EVP_cleanup(); - CRYPTO_cleanup_all_ex_data(); - -} - // Release the Crypt library void FreeCryptLibrary() { @@ -4065,8 +4049,6 @@ void FreeCryptLibrary() openssl_lock = NULL; // RAND_Free_For_SoftEther(); OpenSSL_FreeLock(); - - FreeSsl(); } // Initialize the Crypt library