From: tb Date: Sat, 13 Jan 2024 12:13:17 +0000 (+0000) Subject: Open a garbage bin at the bottom of evp_names.c X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b2c1194eb69f65d98fb3a0e596057a3d5b4cf556;p=openbsd Open a garbage bin at the bottom of evp_names.c First to move is EVP_cleanup(), which should probably be moved to an evp_lib.c if such a file is reinstated. --- diff --git a/lib/libcrypto/evp/evp_names.c b/lib/libcrypto/evp/evp_names.c index 660e23f66e5..26e1df2f879 100644 --- a/lib/libcrypto/evp/evp_names.c +++ b/lib/libcrypto/evp/evp_names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_names.c,v 1.4 2024/01/13 11:12:32 tb Exp $ */ +/* $OpenBSD: evp_names.c,v 1.5 2024/01/13 12:13:17 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler * @@ -1760,3 +1760,14 @@ EVP_get_digestbyname(const char *name) return digest->digest(); } + +/* + * XXX - this is here because most of its job was to clean up the dynamic + * tables of ciphers and digests. If we get an evp_lib.c again, it should + * probably move there. + */ + +void +EVP_cleanup(void) +{ +} diff --git a/lib/libcrypto/evp/names.c b/lib/libcrypto/evp/names.c index a0b19917e19..7b5f6bad6c3 100644 --- a/lib/libcrypto/evp/names.c +++ b/lib/libcrypto/evp/names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: names.c,v 1.29 2024/01/13 11:57:51 tb Exp $ */ +/* $OpenBSD: names.c,v 1.30 2024/01/13 12:13:17 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -75,8 +75,3 @@ EVP_add_digest(const EVP_MD *md) { return 1; } - -void -EVP_cleanup(void) -{ -}