diff options
author | Benoit Foucher <benoit@zeroc.com> | 2015-02-06 11:43:41 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2015-02-06 11:43:41 +0100 |
commit | e591999d8782430e68c5917552ae50aa9bcf1e9d (patch) | |
tree | 287d1d317c8d60cbbe76e63bcbed20e75e12cee6 /cpp/src/IceSSL/PluginI.cpp | |
parent | Minor fix to Ice discovery hello server configuration (diff) | |
download | ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.tar.bz2 ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.tar.xz ice-e591999d8782430e68c5917552ae50aa9bcf1e9d.zip |
Added C++ plugins for endpoint factories, cleaned up registration of WS factories
Diffstat (limited to 'cpp/src/IceSSL/PluginI.cpp')
-rw-r--r-- | cpp/src/IceSSL/PluginI.cpp | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/cpp/src/IceSSL/PluginI.cpp b/cpp/src/IceSSL/PluginI.cpp index 021f4007071..6c9183cca5c 100644 --- a/cpp/src/IceSSL/PluginI.cpp +++ b/cpp/src/IceSSL/PluginI.cpp @@ -12,7 +12,6 @@ #include <IceSSL/SSLEngine.h> #include <IceSSL/EndpointI.h> -#include <Ice/WSEndpoint.h> #include <Ice/ProtocolPluginFacade.h> #include <Ice/ProtocolInstance.h> #include <Ice/LocalException.h> @@ -38,29 +37,23 @@ createIceSSL(const CommunicatorPtr& communicator, const string& /*name*/, const // // Plugin implementation. // -IceSSL::PluginI::PluginI(const Ice::CommunicatorPtr& communicator) +IceSSL::PluginI::PluginI(const Ice::CommunicatorPtr& com) { #if defined(ICE_USE_SECURE_TRANSPORT) - _engine = new SecureTransportEngine(communicator); + _engine = new SecureTransportEngine(com); #elif defined(ICE_USE_SCHANNEL) - _engine = new SChannelEngine(communicator); + _engine = new SChannelEngine(com); #else - _engine = new OpenSSLEngine(communicator); + _engine = new OpenSSLEngine(com); #endif - IceInternal::ProtocolPluginFacadePtr facade = IceInternal::getProtocolPluginFacade(communicator); - // // Register the endpoint factory. We have to do this now, rather // than in initialize, because the communicator may need to // interpret proxies before the plug-in is fully initialized. // IceInternal::EndpointFactoryPtr sslFactory = new EndpointFactoryI(new Instance(_engine, EndpointType, "ssl")); - facade->addEndpointFactory(sslFactory); - - IceInternal::ProtocolInstancePtr wss = - new IceInternal::ProtocolInstance(communicator, WSSEndpointType, "wss", true); - facade->addEndpointFactory(new IceInternal::WSEndpointFactory(wss, sslFactory->clone(wss))); + IceInternal::getProtocolPluginFacade(com)->addEndpointFactory(sslFactory); } void |