poco icon indicating copy to clipboard operation
poco copied to clipboard

OpenSSLInitializer::uninitialize() Openssl 3.x

Open micheleselea opened this issue 1 year ago • 4 comments

If we use Openssl 3.x basically OpenSSLInitializer::uninitialize() does nothing. In initialize is called CONF_modules_load() and probably we should call something like CONF_modules_unload(1); And we should probably call even OSSL_PROVIDER_unload(_defaultProvider); and OSSL_PROVIDER_unload(_legacyProvider);

micheleselea avatar Feb 12 '24 11:02 micheleselea

From what I remember we tried this in the past, but it would lead to a crash when shutting down the application.

obiltschnig avatar Feb 12 '24 12:02 obiltschnig

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

micheleselea avatar Feb 12 '24 12:02 micheleselea

Which version of Poco?

matejk avatar Feb 12 '24 15:02 matejk

latest

micheleselea avatar Feb 12 '24 15:02 micheleselea