fix(OpenSSLInitializer): remove providers unitialization #3562 #3567

This commit is contained in:
Alex Fabijanic
2022-07-13 12:53:52 +02:00
parent 92fac970d4
commit 2934c38b99

View File

@@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize()
#endif
delete [] _mutexes;
#endif
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
OSSL_PROVIDER* provider = nullptr;
if ((provider = _defaultProvider.exchange(nullptr)))
{
OSSL_PROVIDER_unload(provider);
}
if ((provider = _legacyProvider.exchange(nullptr)))
{
OSSL_PROVIDER_unload(provider);
}
#endif
}
}