diff options
Diffstat (limited to 'cpp/demo/IceGrid/secure')
-rw-r--r-- | cpp/demo/IceGrid/secure/.gitignore | 2 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/Client.cpp | 2 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/Hello.ice | 4 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/HelloI.cpp | 4 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/HelloI.h | 4 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/Makefile | 2 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/Makefile.mak | 2 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/Server.cpp | 2 | ||||
-rw-r--r-- | cpp/demo/IceGrid/secure/application.xml | 2 | ||||
-rwxr-xr-x | cpp/demo/IceGrid/secure/expect.py | 38 | ||||
-rwxr-xr-x | cpp/demo/IceGrid/secure/makecerts.py | 2 |
11 files changed, 16 insertions, 48 deletions
diff --git a/cpp/demo/IceGrid/secure/.gitignore b/cpp/demo/IceGrid/secure/.gitignore index 778c6285ebc..58441e933c7 100644 --- a/cpp/demo/IceGrid/secure/.gitignore +++ b/cpp/demo/IceGrid/secure/.gitignore @@ -5,6 +5,6 @@ client server Hello.cpp Hello.h -db/node/* db/registry/* +db/node/* certs/* diff --git a/cpp/demo/IceGrid/secure/Client.cpp b/cpp/demo/IceGrid/secure/Client.cpp index 31f6a858af9..450b7bf773a 100644 --- a/cpp/demo/IceGrid/secure/Client.cpp +++ b/cpp/demo/IceGrid/secure/Client.cpp @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. diff --git a/cpp/demo/IceGrid/secure/Hello.ice b/cpp/demo/IceGrid/secure/Hello.ice index bb8fc0971a5..4b123a06908 100644 --- a/cpp/demo/IceGrid/secure/Hello.ice +++ b/cpp/demo/IceGrid/secure/Hello.ice @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. @@ -15,7 +15,7 @@ module Demo interface Hello { - ["cpp:const"] idempotent void sayHello(); + idempotent void sayHello(); void shutdown(); }; diff --git a/cpp/demo/IceGrid/secure/HelloI.cpp b/cpp/demo/IceGrid/secure/HelloI.cpp index d92675288cf..233c8ec1f54 100644 --- a/cpp/demo/IceGrid/secure/HelloI.cpp +++ b/cpp/demo/IceGrid/secure/HelloI.cpp @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. @@ -17,7 +17,7 @@ HelloI::HelloI(const string& name) : _name(name) } void -HelloI::sayHello(const Ice::Current&) const +HelloI::sayHello(const Ice::Current&) { cout << _name << " says Hello World!" << endl; } diff --git a/cpp/demo/IceGrid/secure/HelloI.h b/cpp/demo/IceGrid/secure/HelloI.h index 189afa1a2da..62802cbc591 100644 --- a/cpp/demo/IceGrid/secure/HelloI.h +++ b/cpp/demo/IceGrid/secure/HelloI.h @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. @@ -18,7 +18,7 @@ public: HelloI(const std::string&); - virtual void sayHello(const Ice::Current&) const; + virtual void sayHello(const Ice::Current&); virtual void shutdown(const Ice::Current&); private: diff --git a/cpp/demo/IceGrid/secure/Makefile b/cpp/demo/IceGrid/secure/Makefile index a1aa116a1b4..4e0a067bfc5 100644 --- a/cpp/demo/IceGrid/secure/Makefile +++ b/cpp/demo/IceGrid/secure/Makefile @@ -1,6 +1,6 @@ # ********************************************************************** # -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. # # This copy of Ice is licensed to you under the terms described in the # ICE_LICENSE file included in this distribution. diff --git a/cpp/demo/IceGrid/secure/Makefile.mak b/cpp/demo/IceGrid/secure/Makefile.mak index 96a2c7898ca..b7824112f7b 100644 --- a/cpp/demo/IceGrid/secure/Makefile.mak +++ b/cpp/demo/IceGrid/secure/Makefile.mak @@ -1,6 +1,6 @@ # **********************************************************************
#
-# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved.
+# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
#
# This copy of Ice is licensed to you under the terms described in the
# ICE_LICENSE file included in this distribution.
diff --git a/cpp/demo/IceGrid/secure/Server.cpp b/cpp/demo/IceGrid/secure/Server.cpp index 7b2b0b3f005..40e7ca45676 100644 --- a/cpp/demo/IceGrid/secure/Server.cpp +++ b/cpp/demo/IceGrid/secure/Server.cpp @@ -1,6 +1,6 @@ // ********************************************************************** // -// Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. diff --git a/cpp/demo/IceGrid/secure/application.xml b/cpp/demo/IceGrid/secure/application.xml index 30cf2770347..b0b2094fb98 100644 --- a/cpp/demo/IceGrid/secure/application.xml +++ b/cpp/demo/IceGrid/secure/application.xml @@ -1,7 +1,7 @@ <!-- ********************************************************************** - Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. + Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. This copy of Ice is licensed to you under the terms described in the ICE_LICENSE file included in this distribution. diff --git a/cpp/demo/IceGrid/secure/expect.py b/cpp/demo/IceGrid/secure/expect.py index c4363002259..da66cbcb03c 100755 --- a/cpp/demo/IceGrid/secure/expect.py +++ b/cpp/demo/IceGrid/secure/expect.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # ********************************************************************** # -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. # # This copy of Ice is licensed to you under the terms described in the # ICE_LICENSE file included in this distribution. @@ -62,8 +62,7 @@ print "ok" print "starting icegrid...", sys.stdout.flush() -registryProps = " --Ice.PrintAdapterReady" + \ - " --IceGrid.Registry.AdminSSLPermissionsVerifier=DemoIceGrid/NullSSLPermissionsVerifier" +registryProps = " --Ice.PrintAdapterReady" registry = Util.spawn('icegridregistry --Ice.Config=config.registry' + registryProps) registry.expect('IceGrid.Registry.Internal ready\nIceGrid.Registry.Server ready\nIceGrid.Registry.Client ready') node = Util.spawn('icegridnode --Ice.Config=config.node --Ice.PrintAdapterReady %s' % (args)) @@ -73,9 +72,7 @@ print "ok" print "starting glacier2...", sys.stdout.flush() -glacier2Props = " --Ice.PrintAdapterReady --Glacier2.SessionTimeout=5" + \ - " --Glacier2.SSLSessionManager=DemoIceGrid/AdminSSLSessionManager" + \ - " --Glacier2.SSLPermissionsVerifier=DemoGlacier2/NullSSLPermissionsVerifier" +glacier2Props = " --Ice.PrintAdapterReady --Glacier2.SessionTimeout=5" glacier2 = Util.spawn('glacier2router --Ice.Config=config.glacier2' + glacier2Props) glacier2.expect('Glacier2.Client ready') glacier2.expect('Glacier2.Server ready') @@ -109,35 +106,6 @@ sys.stdout.flush() runtest() print "ok" -print "testing icegridadmin...", -sys.stdout.flush() - -admin = Util.spawn('icegridadmin --Ice.Config=config.admin --Ice.Default.Router="DemoGlacier2/router:ssl -p 4064"') -admin.expect('>>>') -admin.sendline("server list") -admin.expect('SimpleServer') -admin.expect('>>>') -admin.sendline('exit') -admin.waitTestSuccess(timeout=120) - -admin = Util.spawn('icegridadmin --Ice.Config=config.admin --ssl') -admin.expect('>>>') -admin.sendline("server list") -admin.expect('SimpleServer') -admin.expect('>>>') -admin.sendline('exit') -admin.waitTestSuccess(timeout=120) - -admin = Util.spawn('icegridadmin --Ice.Config=config.admin --ssl --Ice.Default.Router="DemoGlacier2/router:ssl -p 4064"') -admin.expect('>>>') -admin.sendline("server list") -admin.expect('SimpleServer') -admin.expect('>>>') -admin.sendline('exit') -admin.waitTestSuccess(timeout=120) - -print "ok" - print "completing shutdown...", sys.stdout.flush() diff --git a/cpp/demo/IceGrid/secure/makecerts.py b/cpp/demo/IceGrid/secure/makecerts.py index 3f9ebfc92a6..5af14affc19 100755 --- a/cpp/demo/IceGrid/secure/makecerts.py +++ b/cpp/demo/IceGrid/secure/makecerts.py @@ -1,7 +1,7 @@ #!/usr/bin/env python # ********************************************************************** # -# Copyright (c) 2003-2008 ZeroC, Inc. All rights reserved. +# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. # # This copy of Ice is licensed to you under the terms described in the # ICE_LICENSE file included in this distribution. |