Commit d109c4a6645565f5784f6b96f5f5e26c68e35f54

Authored by Laurent BEIGBEDER
1 parent 24aa59d4
Exists in master

Ajout de l'initialisation SSL

server/kernel/src/Transformation/TransformationCDPP3DView.cpp
... ... @@ -24,6 +24,22 @@ namespace TREPS
24 24 {
25 25 //init SOAP client for 3DView Web Service
26 26 this->client = new cdppBinderProxy(SOAP_IO_KEEPALIVE);
  27 + soap_ssl_init();
  28 + if (soap_ssl_client_context(this->client,
  29 + SOAP_SSL_NO_AUTHENTICATION,
  30 + NULL, // keyfile: required only when client must authenticate to server
  31 + NULL, // password to read the key file (not used with GNUTLS)
  32 + NULL, // cacert file to store trusted certificates
  33 + NULL, // capath to directory with trusted certificates
  34 + NULL // if randfile!=NULL: use a file with random data to seed randomness
  35 + )) {
  36 + this->errorMsg = "Error during the SOAP SSL init: ";
  37 + if (this->client->soap_fault_string() != NULL)
  38 + {
  39 + this->errorMsg += this->client->soap_fault_string();
  40 + }
  41 + LOG4CXX_ERROR(this->app->getLog()->getPtr(),this->errorMsg);
  42 + }
27 43 //
28 44 this->availableFrames.clear();
29 45 }
... ...