mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Workaround crash in atexit on NonStop platforms
We cannot dynamically load the legacy provider into an application that is linked statically to libcrypto as this causes a double loading of libcrypto (one static and one dynamic) and on NonStop this leads to a segfault in atexit(). Fixes #17537 Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19844)
This commit is contained in:
parent
a011523706
commit
8bb55680e4
@ -4731,7 +4731,9 @@ int setup_tests(void)
|
||||
/* Swap the libctx to test non-default context only */
|
||||
nullprov = OSSL_PROVIDER_load(NULL, "null");
|
||||
deflprov = OSSL_PROVIDER_load(testctx, "default");
|
||||
#ifndef OPENSSL_SYS_TANDEM
|
||||
lgcyprov = OSSL_PROVIDER_load(testctx, "legacy");
|
||||
#endif
|
||||
break;
|
||||
case OPT_TEST_CASES:
|
||||
break;
|
||||
@ -4863,6 +4865,8 @@ void cleanup_tests(void)
|
||||
{
|
||||
OSSL_PROVIDER_unload(nullprov);
|
||||
OSSL_PROVIDER_unload(deflprov);
|
||||
#ifndef OPENSSL_SYS_TANDEM
|
||||
OSSL_PROVIDER_unload(lgcyprov);
|
||||
#endif
|
||||
OSSL_LIB_CTX_free(testctx);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user