Prepare to provide OPENSSL_cleanup.
authorjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 17:47:47 +0000 (17:47 +0000)
committerjsing <jsing@openbsd.org>
Sat, 3 Sep 2022 17:47:47 +0000 (17:47 +0000)
commit7a1f068732b3740652cd0d3a6196ef846a4040f5
treea48c6ce1115814386a0085119c1107bc2983fca4
parent9db53cc89771ac68143db90d40b42348cfa1e0de
Prepare to provide OPENSSL_cleanup.

OPENSSL_cleanup() cleans up and deallocates memory in use by the library.
There are a couple of use cases for this, primarily related to memory
leak testing. This will not be called automatically in LibreSSL, which
means that OpenSSL's OPENSSL_NO_INIT_ATEXIT is implied. If code wants to
clean up then they need to explicitly call this themselves.

ok tb@
lib/libcrypto/crypto.h
lib/libcrypto/crypto_init.c
lib/libcrypto/x509/x509_issuer_cache.h