Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSLInitializer::uninitialize() Openssl 3.x #4451

Open
micheleselea opened this issue Feb 12, 2024 · 4 comments
Open

OpenSSLInitializer::uninitialize() Openssl 3.x #4451

micheleselea opened this issue Feb 12, 2024 · 4 comments

Comments

@micheleselea
Copy link
Contributor

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);

@obiltschnig
Copy link
Member

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

@micheleselea
Copy link
Contributor Author

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

@matejk
Copy link
Contributor

matejk commented Feb 12, 2024

Which version of Poco?

@micheleselea
Copy link
Contributor Author

latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants