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/src/IcePack/Client.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/src/IcePack/Client.cpp')
-rw-r--r-- | cpp/src/IcePack/Client.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp index 8e997e54c0a..797316f0ada 100644 --- a/cpp/src/IcePack/Client.cpp +++ b/cpp/src/IcePack/Client.cpp @@ -129,8 +129,15 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator) cerr << argv[0] << ": property `" << adminEndpointsProperty << "' is not set" << endl; return EXIT_FAILURE; } - - Ice::ObjectPrx base = communicator->stringToProxy("admin:" + adminEndpoints); +
+ string protocol = properties->getProperty("Ice.Protocol");
+ string secureFlag;
+ if (!protocol.compare("ssl"))
+ {
+ secureFlag = " -s ";
+ }
+ + Ice::ObjectPrx base = communicator->stringToProxy("admin" + secureFlag + ":" + adminEndpoints); AdminPrx admin = AdminPrx::checkedCast(base); if (!admin) { |