]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
CONF_modules_unload(), ENGINE_cleanup() and CRYPTO_cleanup_all_ex_data() are
authorMark Andrews <marka@isc.org>
Sat, 18 Jun 2005 00:48:53 +0000 (00:48 +0000)
committerMark Andrews <marka@isc.org>
Sat, 18 Jun 2005 00:48:53 +0000 (00:48 +0000)
not available in 0x0090607fL

lib/dns/openssl_link.c

index 8bbf6f54602cfcfb1bc75806e12675efe2d83cde..2e4e9743866ee0afbcac0897325b3b920578b228 100644 (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);