From 526e9217658fbdd00f2dbb16818e183b7255490e Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 25 Jan 2022 17:57:57 +0100 Subject: [PATCH] Fix padder in SSL mode reviewed --- src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx index 71e5c887b..1209c8bf3 100644 --- a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx +++ b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx @@ -715,7 +715,13 @@ extern "C" const char *interfaceName) { LOG("PortableServer::ObjectId * MeshJobManagerEngine_factory()"); - MeshJobManager_i * myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName); + MeshJobManager_i * myEngine = nullptr; + CORBA::Object_var o = poa->id_to_reference(*contId); + Engines::Container_var cont = Engines::Container::_narrow(o); + if(cont->is_SSL_mode()) + myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName, false, false); + else + myEngine = new MeshJobManager_i(orb, poa, contId, instanceName, interfaceName, true, true); return myEngine->getId() ; } } -- 2.39.2