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 20:23:16 +0000 (20:23 +0000)
commit56806f432b6c0cabbc46ebcdf6a9a6009489c0c0
treee200c12279face8252ce48be569429bcb984d0ec
parent6b97cc6ec17586ff9c1d96ab5c3e0b6d829074a8
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/7983)
crypto/init.c