]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix padder in SSL mode reviewed
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jan 2022 16:57:57 +0000 (17:57 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 25 Jan 2022 16:57:57 +0000 (17:57 +0100)
src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx

index 71e5c887bb40639a3d1983a85e9f433a8671b059..1209c8bf3265c863749ae2939cc729c3c503ec5f 100644 (file)
@@ -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() ;
   }
 }