summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/hello/Server.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-04-15 20:58:18 +0000
committerAnthony Neal <aneal@zeroc.com>2002-04-15 20:58:18 +0000
commit3f59c84c399a8028bbf3bc1c447af57accef9798 (patch)
treeda1c6bf7909f7e0e60e04d12389c626c6317472b /cpp/demo/Ice/hello/Server.cpp
parentadded pw check to glacier (diff)
downloadice-3f59c84c399a8028bbf3bc1c447af57accef9798.tar.bz2
ice-3f59c84c399a8028bbf3bc1c447af57accef9798.tar.xz
ice-3f59c84c399a8028bbf3bc1c447af57accef9798.zip
Updated to perform SSL configuration prior to server adapter activation.
Diffstat (limited to 'cpp/demo/Ice/hello/Server.cpp')
-rw-r--r--cpp/demo/Ice/hello/Server.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/demo/Ice/hello/Server.cpp b/cpp/demo/Ice/hello/Server.cpp
index df1e6b22ba3..9bd89667365 100644
--- a/cpp/demo/Ice/hello/Server.cpp
+++ b/cpp/demo/Ice/hello/Server.cpp
@@ -9,6 +9,7 @@
// **********************************************************************
#include <Ice/Ice.h>
+#include <Ice/System.h>
#include <HelloI.h>
using namespace std;
@@ -17,6 +18,10 @@ int
run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("HelloAdapter");
+
+ IceSSL::SystemPtr sslSystem = communicator->getSslSystem();
+ sslSystem->configure(IceSSL::Server);
+
Ice::ObjectPtr object = new HelloI(communicator);
adapter->add(object, Ice::stringToIdentity("hello"));
adapter->activate();