summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/OpenSSLPluginI.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2003-02-21 21:24:00 +0000
committerMark Spruiell <mes@zeroc.com>2003-02-21 21:24:00 +0000
commit9d3cb431f997477067757531d8c9b00181a72630 (patch)
tree132d41800831c2caa066ed962590c46d1e0dddc3 /cpp/src/IceSSL/OpenSSLPluginI.cpp
parentbug fix in endpoint parsing (diff)
downloadice-9d3cb431f997477067757531d8c9b00181a72630.tar.bz2
ice-9d3cb431f997477067757531d8c9b00181a72630.tar.xz
ice-9d3cb431f997477067757531d8c9b00181a72630.zip
portability fixes for openssl, xerces; dependency update
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLPluginI.cpp')
-rw-r--r--cpp/src/IceSSL/OpenSSLPluginI.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/cpp/src/IceSSL/OpenSSLPluginI.cpp b/cpp/src/IceSSL/OpenSSLPluginI.cpp
index cce327d4c6e..2953719202b 100644
--- a/cpp/src/IceSSL/OpenSSLPluginI.cpp
+++ b/cpp/src/IceSSL/OpenSSLPluginI.cpp
@@ -32,7 +32,6 @@
#include <IceSSL/RSAPrivateKey.h>
#include <IceSSL/DHParams.h>
-#include <openssl/e_os.h>
#include <openssl/rand.h>
#include <openssl/err.h>
@@ -40,9 +39,14 @@
#define OPENSSL_THREAD_DEFINES
#include <openssl/opensslconf.h>
-#if defined(THREADS)
+#if OPENSSL_VERSION_NUMBER < 0x0090700fL
+# if !defined(THREADS)
+# error "Thread support not enabled"
+# endif
#else
-#error "Thread support not enabled"
+# if !defined(OPENSSL_THREADS)
+# error "Thread support not enabled"
+# endif
#endif
using namespace std;
@@ -771,9 +775,11 @@ IceSSL::OpenSSLPluginI::loadRandFiles(const string& names)
strcpy(namesString, names.c_str());
- char seps[5];
-
- sprintf(seps, "%c", LIST_SEPARATOR_CHAR);
+#ifdef _WIN32
+ const char* seps = ";";
+#else
+ const char* seps = ":";
+#endif
char* token = strtok(namesString, seps);