Support _onexit() in preference to atexit() on Windows
authorMatt Caswell <matt@openssl.org>
Fri, 16 Nov 2018 17:26:23 +0000 (17:26 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 4 Jan 2019 13:19:39 +0000 (13:19 +0000)
commitde2debc524e8de89a9e4e8cd890af3882cf1aaab
treef7d4cc1c8274c8659d6b125fb16b27a2d8455b42
parent41999e7d358c3657a254b34b85fd9e948180529b
Support _onexit() in preference to atexit() on Windows

This enables cleanup to happen on DLL unload instead of at process exit.

[extended tests]

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7647)
crypto/init.c