summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/OpenSSLPluginI.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2003-12-18 19:42:34 +0000
committerAnthony Neal <aneal@zeroc.com>2003-12-18 19:42:34 +0000
commitfcefbe192671ad1b5554793f9245de55886daa81 (patch)
tree35c6079a9808aa3abe569d500172ea53652f5765 /cpp/src/IceSSL/OpenSSLPluginI.cpp
parentfix (diff)
downloadice-fcefbe192671ad1b5554793f9245de55886daa81.tar.bz2
ice-fcefbe192671ad1b5554793f9245de55886daa81.tar.xz
ice-fcefbe192671ad1b5554793f9245de55886daa81.zip
Added conditional compilation of CRYPTO_cleanup_all_ext_data() and
ENGINE_cleanup(), as they are not supported until OpenSSL 0.9.7a.
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLPluginI.cpp')
-rw-r--r--cpp/src/IceSSL/OpenSSLPluginI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/OpenSSLPluginI.cpp b/cpp/src/IceSSL/OpenSSLPluginI.cpp
index a82257a1d4a..104f5228050 100644
--- a/cpp/src/IceSSL/OpenSSLPluginI.cpp
+++ b/cpp/src/IceSSL/OpenSSLPluginI.cpp
@@ -219,8 +219,10 @@ IceSSL::OpenSSLPluginI::~OpenSSLPluginI()
_serverContext.cleanUp();
_clientContext.cleanUp();
+#if OPENSSL_VERSION_NUMBER >= 0x0090700fL
ENGINE_cleanup();
CRYPTO_cleanup_all_ex_data();
+#endif
ERR_free_strings();
unregisterThreads();