From 9819c77d3658919dfcbece3402fd2093c72c81bb Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 13 Jan 2024 11:57:51 +0000 Subject: Remove obj_cleanup_defer With check_defer() gone, this is never set to anything but 0, so the two conditional branches it is still involved in are dead code. --- src/lib/libcrypto/evp/names.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/lib/libcrypto/evp/names.c') diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index 7dc9457c3e..a0b19917e1 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.28 2024/01/13 11:55:31 tb Exp $ */ +/* $OpenBSD: names.c,v 1.29 2024/01/13 11:57:51 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -64,8 +64,6 @@ #include "evp_local.h" -extern int obj_cleanup_defer; - int EVP_add_cipher(const EVP_CIPHER *c) { @@ -81,8 +79,4 @@ EVP_add_digest(const EVP_MD *md) void EVP_cleanup(void) { - if (obj_cleanup_defer == 2) { - obj_cleanup_defer = 0; - OBJ_cleanup(); - } } -- cgit v1.2.3-55-g6feb