diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-04-13 12:11:59 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-04-13 15:05:07 +0100 |
commit | a535fe12f625f30e5e6b27d588403fe25a3ffcf3 (patch) | |
tree | 98f2236f3977192ec01b5196a0e17e7bc0a6cc19 /crypto/init.c | |
parent | 7e74eaa661e05f27a503b3ff3fecc8c94e9e781e (diff) | |
download | openssl-a535fe12f625f30e5e6b27d588403fe25a3ffcf3.tar.gz |
Remove check_defer()
The check_defer() function was used to ensure that EVP_cleanup() was always
called before OBJ_cleanup(). The new cleanup code ensures this so it is
no longer needed.
Remove obj_cleanup() call in OID config module: it is not needed
any more either.
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/init.c')
-rw-r--r-- | crypto/init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/init.c b/crypto/init.c index 21dc36d35e..f44e3a84f2 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -474,12 +474,14 @@ void OPENSSL_cleanup(void) #endif /* * Note that cleanup order is important: - * - rand_cleanup_int could call an ENINGE's RAND cleanup function so + * - rand_cleanup_int could call an ENGINE's RAND cleanup function so * must be called before engine_cleanup_int() * - ENGINEs use CRYPTO_EX_DATA and therefore, must be cleaned up * before the ex data handlers are wiped in CRYPTO_cleanup_all_ex_data(). * - conf_modules_free_int() can end up in ENGINE code so must be called * before engine_cleanup_int() + * - ENGINEs and additional EVP algorithms might use added OIDs names so + * obj_cleanup_int() must be called last */ rand_cleanup_int(); conf_modules_free_int(); |