From d109c4a6645565f5784f6b96f5f5e26c68e35f54 Mon Sep 17 00:00:00 2001 From: Laurent BEIGBEDER Date: Mon, 8 Jul 2024 16:40:11 +0200 Subject: [PATCH] Ajout de l'initialisation SSL --- server/kernel/src/Transformation/TransformationCDPP3DView.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) diff --git a/server/kernel/src/Transformation/TransformationCDPP3DView.cpp b/server/kernel/src/Transformation/TransformationCDPP3DView.cpp index aa5a95e..03bf3e8 100644 --- a/server/kernel/src/Transformation/TransformationCDPP3DView.cpp +++ b/server/kernel/src/Transformation/TransformationCDPP3DView.cpp @@ -24,6 +24,22 @@ namespace TREPS { //init SOAP client for 3DView Web Service this->client = new cdppBinderProxy(SOAP_IO_KEEPALIVE); + soap_ssl_init(); + if (soap_ssl_client_context(this->client, + SOAP_SSL_NO_AUTHENTICATION, + NULL, // keyfile: required only when client must authenticate to server + NULL, // password to read the key file (not used with GNUTLS) + NULL, // cacert file to store trusted certificates + NULL, // capath to directory with trusted certificates + NULL // if randfile!=NULL: use a file with random data to seed randomness + )) { + this->errorMsg = "Error during the SOAP SSL init: "; + if (this->client->soap_fault_string() != NULL) + { + this->errorMsg += this->client->soap_fault_string(); + } + LOG4CXX_ERROR(this->app->getLog()->getPtr(),this->errorMsg); + } // this->availableFrames.clear(); } -- libgit2 0.21.2