Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame^] | 1 | From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:00 2001 |
| 2 | From: Alex Fabijanic <alex@pocoproject.org> |
| 3 | Date: Wed, 13 Jul 2022 12:53:52 +0200 |
| 4 | Subject: [PATCH] fix(OpenSSLInitializer): remove providers unitialization |
| 5 | #3562 #3567 |
| 6 | |
| 7 | Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3562] |
| 8 | |
| 9 | --- |
| 10 | Crypto/src/OpenSSLInitializer.cpp | 12 ------------ |
| 11 | 1 file changed, 12 deletions(-) |
| 12 | |
| 13 | diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp |
| 14 | index 4678d22299..c537c3f9c2 100644 |
| 15 | --- a/Crypto/src/OpenSSLInitializer.cpp |
| 16 | +++ b/Crypto/src/OpenSSLInitializer.cpp |
| 17 | @@ -157,18 +157,6 @@ void OpenSSLInitializer::uninitialize() |
| 18 | #endif |
| 19 | delete [] _mutexes; |
| 20 | #endif |
| 21 | - |
| 22 | -#if OPENSSL_VERSION_NUMBER >= 0x30000000L |
| 23 | - OSSL_PROVIDER* provider = nullptr; |
| 24 | - if ((provider = _defaultProvider.exchange(nullptr))) |
| 25 | - { |
| 26 | - OSSL_PROVIDER_unload(provider); |
| 27 | - } |
| 28 | - if ((provider = _legacyProvider.exchange(nullptr))) |
| 29 | - { |
| 30 | - OSSL_PROVIDER_unload(provider); |
| 31 | - } |
| 32 | -#endif |
| 33 | } |
| 34 | } |
| 35 | |