Workaround crash in atexit on NonStop platforms
authorTomas Mraz <tomas@openssl.org>
Tue, 6 Dec 2022 09:52:47 +0000 (10:52 +0100)
committerPauli <pauli@openssl.org>
Tue, 31 Jan 2023 00:04:24 +0000 (11:04 +1100)
commit8bb55680e46c868b0aa09682c2bef954231841b5
tree23f70d0689eae96957bbf83968995380b34eb0c5
parenta01152370676e7e11fb461cff8628eb50fa41b81
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)
test/evp_extra_test.c