blob: 7d24b79f14da070c571bc156e531e870ff700191 [file] [log] [blame]
Andrew Geissler615f2f12022-07-15 14:00:58 -05001From c976c32e5249cb8a2433e7abfa095c1fe8dc4f8e Mon Sep 17 00:00:00 2001
2From: Alex Fabijanic <alex@pocoproject.org>
3Date: Wed, 13 Jul 2022 12:53:52 +0200
4Subject: [PATCH] fix(OpenSSLInitializer): remove providers unitialization
5 #3562 #3567
6
7Upstream-Status: Backport [https://github.com/pocoproject/poco/issues/3562]
8
9---
10 Crypto/src/OpenSSLInitializer.cpp | 12 ------------
11 1 file changed, 12 deletions(-)
12
13diff --git a/Crypto/src/OpenSSLInitializer.cpp b/Crypto/src/OpenSSLInitializer.cpp
14index 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