not available in 0x0090607fL
/*
* 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
/*
* 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);