About this problem, i found the solution, i put the CRYPTO_thread_ setup and cleanup functions in the correct place, i mean, CRYPTO_thread_setup before creating the gsoap variable and CRYPTO_thread_cleanup when i destroy the gsoap variable. The gsoap variable is created once time, and for each request i use the copy (gsoap variable).
Thanks you to everybody. Yadira ________________________________ From: Yadira Cruces <[email protected]> To: [email protected] Sent: Tuesday, April 28, 2009 6:29:55 PM Subject: [gsoap] Client with SSL/WSSE Hi: I have a CLIENT gsoap (SSL+WSSE) uses a dynamic library (c++) which encapsulates all about SSL and WSSE, when i test my client gsoap sending a lot of requests in parallel some requests fail with autentication errror or some times the program crash generating a coredump, when i examine the core file it indicates that the error is in SSL_connect. I tested it loading the certificates and creating the soap variable by each request but it does not work sometimes I tested it loading the certificates and creating the soap variable only one time but it does not work sometimes I included the CRYPTO_thread_ setup and cleanup (calling in each request and only one time) but it does not work sometimes The server (also done using gsoap + SSL + WSSE) shows the following message: (in this case the client gsoap don't crash Error 30 fault: SOAP-ENV erver [no subcode] "EOF was observed that violates the protocol. The client probably provided invalid authentication information. " Detail: SSL_accept() failed in soap_ssl_accept( ) SSL request failed, continue with next call... I look at in the forum but i can't get a solution. Thanks
