Deprecate OBJ_cleanup() and make it a no-op

OBJ_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:49:21 +01:00
parent 22c84afa77
commit 7b8cc9b345
13 changed files with 36 additions and 20 deletions

View File

@@ -61,7 +61,7 @@
#include "internal/cryptlib.h"
#include <openssl/lhash.h>
#include <openssl/asn1.h>
#include <openssl/objects.h>
#include "internal/objects.h"
#include <openssl/bn.h>
#include "internal/asn1_int.h"
#include "obj_lcl.h"
@@ -210,7 +210,7 @@ void check_defer(int nid)
obj_cleanup_defer = 1;
}
void OBJ_cleanup(void)
void obj_cleanup_intern(void)
{
if (obj_cleanup_defer) {
obj_cleanup_defer = 2;