]> git.feebdaed.xyz Git - 0xmirror/openssl.git/commit
Introduce OPENSSL_ATEXIT_CLEANUP env. variable.
authorAlexandr Nedvedicky <sashan@openssl.org>
Mon, 24 Nov 2025 16:05:26 +0000 (17:05 +0100)
committerNeil Horman <nhorman@openssl.org>
Fri, 19 Dec 2025 17:01:59 +0000 (12:01 -0500)
commit31659fe32673a6bd66abf3f8a7d803e81c6ffeed
tree90c3b22278d0fbd0752577157937618e32cf870f
parent380ff1448596926fc9d252c8e4c2720b006ef912
Introduce OPENSSL_ATEXIT_CLEANUP env. variable.

libcrypto does not arm OPENSSL_cleanup() function as atexit(3) handler by default.
If application/user wants libcrypto to install OPENSSL_cleanup() as atexit handler,
then OPENSSL_ATEXIT_CLEANUP env. variable must be set.

If platform's libc does not provide atexit(3), then OPENSSL_ATEXIT_CLEANUP has no effect.

The OPENSSL_atexit() is wrapper of atexit(3) provided by libc now.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29385)
12 files changed:
CHANGES.md
apps/fipsinstall.c
apps/openssl.c
crypto/init.c
crypto/initthread.c
doc/man3/OPENSSL_init_crypto.pod
include/openssl/crypto.h.in
test/defltfips_test.c
test/endecode_test.c
test/rand_test.c
test/recipes/90-test_shlibload.t
test/shlibloadtest.c