diff options
Diffstat (limited to 'cpp/test/IceSSL/certificateVerification/Server.cpp')
-rw-r--r-- | cpp/test/IceSSL/certificateVerification/Server.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/IceSSL/certificateVerification/Server.cpp b/cpp/test/IceSSL/certificateVerification/Server.cpp index 69e80bb4532..58c899ac889 100644 --- a/cpp/test/IceSSL/certificateVerification/Server.cpp +++ b/cpp/test/IceSSL/certificateVerification/Server.cpp @@ -159,13 +159,13 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) sslPlugin->setCertificateVerifier(IceSSL::Server, certVerifier); } - string kmEndpts = "tcp -p 12344 -t 2000"; - Ice::ObjectAdapterPtr kmAdapter = communicator->createObjectAdapterWithEndpoints("KeyManagerAdapter", kmEndpts); + properties->setProperty("KeyManagerAdapter.Endpoints", "tcp -p 12344 -t 2000"); + Ice::ObjectAdapterPtr kmAdapter = communicator->createObjectAdapter("KeyManagerAdapter"); kmAdapter->add(object, Ice::stringToIdentity("keyManager")); kmAdapter->activate(); - string endpts = "ssl -p 12345 -t 2000"; - Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("PingerAdapter", endpts); + properties->setProperty("PingerAdapter.Endpoints", "ssl -p 12345 -t 2000"); + Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("PingerAdapter"); adapter->add(new PingerI(), Ice::stringToIdentity("pinger")); adapter->activate(); communicator->waitForShutdown(); |