mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-01 02:57:51 +00:00
fix(OpenSSLInitializer): unload provider on uninitialize (#3567)
This commit is contained in:
@@ -158,6 +158,16 @@ void OpenSSLInitializer::uninitialize()
|
||||
delete [] _mutexes;
|
||||
#endif
|
||||
|
||||
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
|
||||
if (_defaultProvider)
|
||||
{
|
||||
OSSL_PROVIDER_unload(_defaultProvider);
|
||||
}
|
||||
if (_legacyProvider)
|
||||
{
|
||||
OSSL_PROVIDER_unload(_legacyProvider);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user