CONF_modules_unload(), ENGINE_cleanup() and CRYPTO_cleanup_all_ex_data() are

not available in 0x0090607fL
This commit is contained in:
Mark Andrews
2005-06-18 00:48:53 +00:00
parent 8c2490a92a
commit 6820d6f323

View File

@@ -18,7 +18,7 @@
/*
* Principal Author: Brian Wellington
* $Id: openssl_link.c,v 1.5 2005/06/17 03:55:51 marka Exp $
* $Id: openssl_link.c,v 1.6 2005/06/18 00:48:53 marka Exp $
*/
#ifdef OPENSSL
@@ -190,12 +190,16 @@ dst__openssl_destroy() {
/*
* Sequence taken from apps_shutdown() in <apps/apps.h>.
*/
#if (OPENSSL_VERSION_NUMBER > 0x0090607fL)
CONF_modules_unload(1);
#endif
EVP_cleanup();
#ifdef USE_ENGINE
#if defined(USE_ENGINE) && OPENSSL_VERSION_NUMBER > 0x0090607fL
ENGINE_cleanup();
#endif
#if (OPENSSL_VERSION_NUMBER > 0x0090607fL)
CRYPTO_cleanup_all_ex_data();
#endif
ERR_clear_error();
ERR_free_strings();
ERR_remove_state(0);