diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp index 4678d22299..c537c3f9c2 100644 --- a/Crypto/src/OpenSSLInitializer.cpp +++ b/Crypto/src/OpenSSLInitializer.cpp @@ -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 } }