From 6820d6f3233268f9abb2aadb6502cebbb56ea464 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sat, 18 Jun 2005 00:48:53 +0000 Subject: [PATCH] CONF_modules_unload(), ENGINE_cleanup() and CRYPTO_cleanup_all_ex_data() are not available in 0x0090607fL --- lib/dns/openssl_link.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/dns/openssl_link.c b/lib/dns/openssl_link.c index 8bbf6f5460..2e4e974386 100644 --- a/lib/dns/openssl_link.c +++ b/lib/dns/openssl_link.c @@ -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 . */ +#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);