diff options
author | Anthony Neal <aneal@zeroc.com> | 2001-11-13 15:42:30 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2001-11-13 15:42:30 +0000 |
commit | fcd722bf5050ea9f3b96288bc30fe539744b3e00 (patch) | |
tree | aaee49bc6dc47c3abd88b3b0c2abe91dd3f2a824 /cpp/test/Ice/inheritance/AllTests.cpp | |
parent | minor fixes (diff) | |
download | ice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.tar.bz2 ice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.tar.xz ice-fcd722bf5050ea9f3b96288bc30fe539744b3e00.zip |
Incorporates SSL, with all Ice tests running under SSL.
Diffstat (limited to 'cpp/test/Ice/inheritance/AllTests.cpp')
-rw-r--r-- | cpp/test/Ice/inheritance/AllTests.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/cpp/test/Ice/inheritance/AllTests.cpp b/cpp/test/Ice/inheritance/AllTests.cpp index b4d6fb14d42..31fcfd902b3 100644 --- a/cpp/test/Ice/inheritance/AllTests.cpp +++ b/cpp/test/Ice/inheritance/AllTests.cpp @@ -17,8 +17,25 @@ using namespace std; InitialPrx allTests(const Ice::CommunicatorPtr& communicator) { + Ice::PropertiesPtr properties = communicator->getProperties(); + + string protocol = properties->getProperty("Ice.Protocol"); + + if (protocol.empty()) + { + protocol = "tcp"; + } + + string secureFlag; + + if (!protocol.compare("ssl")) + { + secureFlag = " -s "; + } + + string ref = "initial" + secureFlag + ":" + protocol + " -p 12345 -t 2000"; + cout << "testing stringToProxy... " << flush; - string ref("initial:tcp -p 12345 -t 2000"); Ice::ObjectPrx base = communicator->stringToProxy(ref); test(base); cout << "ok" << endl; @@ -101,7 +118,6 @@ allTests(const Ice::CommunicatorPtr& communicator) test(cbo == cc); cco = cc->cc(cc); test(cco == cc); - cout << "ok" << endl; cout << "ditto, but for interface hierarchy... " << flush; |