Commit f3e87097245e39b5fa9164981ab864a0198a6f94
1 parent
d109c4a6
Exists in
master
Initialisation SSL à la connexion des web services
Showing
1 changed file
with
16 additions
and
0 deletions
Show diff stats
server/kernel/src/Bodies/BodiesCDPP3DView.cpp
... | ... | @@ -21,6 +21,22 @@ namespace TREPS |
21 | 21 | { |
22 | 22 | //init SOAP client for 3DView Web Service |
23 | 23 | this->client = new cdppBinderProxy(SOAP_IO_KEEPALIVE); |
24 | + soap_ssl_init(); | |
25 | + if (soap_ssl_client_context(this->client, | |
26 | + SOAP_SSL_NO_AUTHENTICATION, | |
27 | + NULL, // keyfile: required only when client must authenticate to server | |
28 | + NULL, // password to read the key file (not used with GNUTLS) | |
29 | + NULL, // cacert file to store trusted certificates | |
30 | + NULL, // capath to directory with trusted certificates | |
31 | + NULL // if randfile!=NULL: use a file with random data to seed randomness | |
32 | + )) { | |
33 | + this->errorMsg = "Error during the SOAP SSL init: "; | |
34 | + if (this->client->soap_fault_string() != NULL) | |
35 | + { | |
36 | + this->errorMsg += this->client->soap_fault_string(); | |
37 | + } | |
38 | + LOG4CXX_ERROR(this->app->getLog()->getPtr(),this->errorMsg); | |
39 | + } | |
24 | 40 | } |
25 | 41 | |
26 | 42 | BodiesCDPP3DViewClass::~BodiesCDPP3DViewClass(void) | ... | ... |