summaryrefslogtreecommitdiff
path: root/cpp/test/IceSSL/configuration/TestI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceSSL/configuration/TestI.cpp')
-rw-r--r--cpp/test/IceSSL/configuration/TestI.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/test/IceSSL/configuration/TestI.cpp b/cpp/test/IceSSL/configuration/TestI.cpp
index 093a52d6c19..7723da865b3 100644
--- a/cpp/test/IceSSL/configuration/TestI.cpp
+++ b/cpp/test/IceSSL/configuration/TestI.cpp
@@ -26,7 +26,7 @@ ServerI::noCert(const Ice::Current& c)
{
try
{
- IceSSL::NativeConnectionInfoPtr info = IceSSL::NativeConnectionInfoPtr::dynamicCast(c.con->getInfo());
+ IceSSL::NativeConnectionInfoPtr info = ICE_DYNAMIC_CAST(IceSSL::NativeConnectionInfo, c.con->getInfo());
test(info->nativeCerts.size() == 0);
}
catch(const Ice::LocalException& ex)
@@ -37,11 +37,11 @@ ServerI::noCert(const Ice::Current& c)
}
void
-ServerI::checkCert(const string& subjectDN, const string& issuerDN, const Ice::Current& c)
+ServerI::checkCert(ICE_IN(string) subjectDN, ICE_IN(string) issuerDN, const Ice::Current& c)
{
try
{
- IceSSL::NativeConnectionInfoPtr info = IceSSL::NativeConnectionInfoPtr::dynamicCast(c.con->getInfo());
+ IceSSL::NativeConnectionInfoPtr info = ICE_DYNAMIC_CAST(IceSSL::NativeConnectionInfo, c.con->getInfo());
test(info->verified);
test(info->nativeCerts.size() == 2 &&
info->nativeCerts[0]->getSubjectDN() == IceSSL::DistinguishedName(subjectDN) &&
@@ -54,11 +54,11 @@ ServerI::checkCert(const string& subjectDN, const string& issuerDN, const Ice::C
}
void
-ServerI::checkCipher(const string& cipher, const Ice::Current& c)
+ServerI::checkCipher(ICE_IN(string) cipher, const Ice::Current& c)
{
try
{
- IceSSL::NativeConnectionInfoPtr info = IceSSL::NativeConnectionInfoPtr::dynamicCast(c.con->getInfo());
+ IceSSL::NativeConnectionInfoPtr info = ICE_DYNAMIC_CAST(IceSSL::NativeConnectionInfo, c.con->getInfo());
test(info->cipher.compare(0, cipher.size(), cipher) == 0);
}
catch(const Ice::LocalException&)
@@ -74,8 +74,8 @@ ServerI::destroy()
_communicator->destroy();
}
-Test::ServerPrx
-ServerFactoryI::createServer(const Test::Properties& props, const Current&)
+Test::ServerPrxPtr
+ServerFactoryI::createServer(ICE_IN(Test::Properties) props, const Current&)
{
InitializationData initData;
initData.properties = createProperties();
@@ -86,16 +86,16 @@ ServerFactoryI::createServer(const Test::Properties& props, const Current&)
CommunicatorPtr communicator = initialize(initData);
ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("ServerAdapter", "ssl");
- ServerIPtr server = new ServerI(communicator);
- ObjectPrx obj = adapter->addWithUUID(server);
+ ServerIPtr server = ICE_MAKE_SHARED(ServerI, communicator);
+ ObjectPrxPtr obj = adapter->addWithUUID(server);
_servers[obj->ice_getIdentity()] = server;
adapter->activate();
- return Test::ServerPrx::uncheckedCast(obj);
+ return ICE_UNCHECKED_CAST(Test::ServerPrx, obj);
}
void
-ServerFactoryI::destroyServer(const Test::ServerPrx& srv, const Ice::Current&)
+ServerFactoryI::destroyServer(ICE_IN(Test::ServerPrxPtr) srv, const Ice::Current&)
{
map<Identity, ServerIPtr>::iterator p = _servers.find(srv->ice_getIdentity());
if(p != _servers.end())