summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/PluginI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceSSL/PluginI.cpp')
-rw-r--r--cpp/src/IceSSL/PluginI.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/PluginI.cpp b/cpp/src/IceSSL/PluginI.cpp
index 5a39e3ee93f..145089d026e 100644
--- a/cpp/src/IceSSL/PluginI.cpp
+++ b/cpp/src/IceSSL/PluginI.cpp
@@ -9,7 +9,6 @@
#include <IceSSL/PluginI.h>
#include <IceSSL/Instance.h>
-#include <IceSSL/TransceiverI.h>
#include <IceSSL/SSLEngine.h>
#include <IceSSL/EndpointI.h>
#include <IceSSL/EndpointInfo.h>
@@ -41,10 +40,12 @@ createIceSSL(const CommunicatorPtr& communicator, const string& /*name*/, const
//
IceSSL::PluginI::PluginI(const Ice::CommunicatorPtr& communicator)
{
-#ifdef ICE_USE_OPENSSL
- _engine = new OpenSSLEngine(communicator);
-#else
+#if defined(ICE_USE_SECURE_TRANSPORT)
_engine = new SecureTransportEngine(communicator);
+#elif defined(ICE_USE_SCHANNEL)
+ _engine = new SChannelEngine(communicator);
+#else
+ _engine = new OpenSSLEngine(communicator);
#endif
IceInternal::ProtocolPluginFacadePtr facade = IceInternal::getProtocolPluginFacade(communicator);