Open micheleselea opened 5 months ago
From what I remember we tried this in the past, but it would lead to a crash when shutting down the application.
My app was crashing on exit because I did Poco::Net::uninitializeSSL(); in a Singleton destructor. I removed from the destructor and do it more explicit and it's working. Anyway I think it's not such a problem even the OpenSSLInitializer::uninitialize() does nothing because usually it's called on shut down
Which version of Poco?
latest
If we use Openssl 3.x basically
OpenSSLInitializer::uninitialize()
does nothing. In initialize is calledCONF_modules_load()
and probably we should call something likeCONF_modules_unload(1);
And we should probably call evenOSSL_PROVIDER_unload(_defaultProvider);
andOSSL_PROVIDER_unload(_legacyProvider);