diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-04-15 20:58:18 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-04-15 20:58:18 +0000 |
commit | 3f59c84c399a8028bbf3bc1c447af57accef9798 (patch) | |
tree | da1c6bf7909f7e0e60e04d12389c626c6317472b /cpp/demo/Ice/hello/Server.cpp | |
parent | added pw check to glacier (diff) | |
download | ice-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.cpp | 5 |
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(); |