From a1bdd4c20c55e52ed63ea6391d4e33da0b8a8684 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 29 Jun 2023 06:11:33 +0000 Subject: Move check_defer() and obj_cleanup_defer to evp/names.c These formerly public symbols are the last things hidden by LIBRESSL_CRYPTO_INTERNAL. Most of their use is in evp/names.c Unfortunately, check_defer() needs to know about NUM_NIDS, so its implementation needs to remain in obj_dat.c, the only file that can include obj_dat.h due to NID tables. ok miod --- src/lib/libcrypto/evp/names.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/evp') diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index a27a187542..10ce13bb89 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.16 2022/11/26 16:08:52 tb Exp $ */ +/* $OpenBSD: names.c,v 1.17 2023/06/29 06:11:33 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -64,6 +64,9 @@ #include "evp_local.h" +extern int obj_cleanup_defer; +void check_defer(int nid); + int EVP_add_cipher(const EVP_CIPHER *c) { -- cgit v1.2.3-55-g6feb