summaryrefslogtreecommitdiff
path: root/cpp/test/Glacier2/ssl/Client.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-05-18 18:52:38 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-05-18 18:52:38 +0000
commitd14ed128d63a0cfb45eb85775cab4c65f1b469ee (patch)
tree891bc8974712b245f573c245b1943b1ee8159167 /cpp/test/Glacier2/ssl/Client.cpp
parentAdded session activation demo (diff)
downloadice-d14ed128d63a0cfb45eb85775cab4c65f1b469ee.tar.bz2
ice-d14ed128d63a0cfb45eb85775cab4c65f1b469ee.tar.xz
ice-d14ed128d63a0cfb45eb85775cab4c65f1b469ee.zip
Added implementation of SSL authorization for Glacier2.
Diffstat (limited to 'cpp/test/Glacier2/ssl/Client.cpp')
-rwxr-xr-xcpp/test/Glacier2/ssl/Client.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/cpp/test/Glacier2/ssl/Client.cpp b/cpp/test/Glacier2/ssl/Client.cpp
index 90f9a56cff2..bbed678607a 100755
--- a/cpp/test/Glacier2/ssl/Client.cpp
+++ b/cpp/test/Glacier2/ssl/Client.cpp
@@ -61,10 +61,11 @@ CallbackClient::run(int argc, char* argv[])
test(false);
}
cout << "ok" << endl;
+
cout << "creating ssl session with tcp connection... ";
try
{
- Glacier2::SessionPrx session = router->createSession("ssl", "");
+ Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
test(false);
}
catch(const Glacier2::PermissionDeniedException&)
@@ -88,17 +89,21 @@ CallbackClient::run(int argc, char* argv[])
try
{
Glacier2::SessionPrx session = router->createSession("nossl", "");
- test(false);
+ router->destroySession();
+ }
+ catch(const Ice::ConnectionLostException&)
+ {
}
catch(const Glacier2::PermissionDeniedException&)
{
+ test(false);
}
cout << "ok" << endl;
cout << "creating ssl session with ssl connection... ";
try
{
- Glacier2::SessionPrx session = router->createSession("ssl", "");
+ Glacier2::SessionPrx session = router->createSessionFromSecureConnection();
router->destroySession();
}
catch(const Ice::ConnectionLostException&)