]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add atexit configuration option to using atexit() in libcrypto at build-time.
authorRandall S. Becker <randall.becker@nexbridge.ca>
Thu, 25 Jan 2024 22:11:27 +0000 (22:11 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 22 Feb 2024 09:40:04 +0000 (10:40 +0100)
commit73a68d8adde293ad73cb66444b4b683a5697d686
tree2e32472a9ddbb901f07b2d27828affc358253c41
parent878d31954738369c35cbafbaa65e9201e9fc6d4b
Add atexit configuration option to using atexit() in libcrypto at build-time.

This fixes an issue with a mix of atexit() usage in DLL and statically linked
libcrypto that came out in the test suite on NonStop, which has slightly
different DLL unload processing semantics compared to Linux. The change
allows a build configuration to select whether to register OPENSSL_cleanup()
with atexit() or not, so avoid situations where atexit() registration causes
SIGSEGV.

INSTALL.md and CHANGES.md have been modified to include and describe this
option.

Signed-off-by: Randall S. Becker <randall.becker@nexbridge.ca>
Signed-off-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23642)

(cherry picked from commit 0e1989d4c7435809b60f614c23ba8c9a7c0373e8)
.github/workflows/run-checker-ci.yml
CHANGES.md
Configure
INSTALL.md
NOTES-NONSTOP.md
crypto/init.c
test/recipes/90-test_shlibload.t