Deprecate EVP_cleanup() and make it a no-op

EVP_cleanup() should not be called expicitly - we should leave
auto-deinit to clean this up instead.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Matt Caswell
2016-04-04 15:28:58 +01:00
parent 62d876ad17
commit 22c84afa77
7 changed files with 47 additions and 18 deletions

View File

@@ -199,8 +199,8 @@ static void cleanup3_doall(ADDED_OBJ *a)
}
/*
* The purpose of obj_cleanup_defer is to avoid EVP_cleanup() attempting to
* use freed up OIDs. If necessary the actual freeing up of OIDs is delayed.
* The purpose of obj_cleanup_defer is to avoid evp_cleanup_intern() attempting
* to use freed up OIDs. If necessary the actual freeing up of OIDs is delayed.
*/
int obj_cleanup_defer = 0;