summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-01-13 12:13:18 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-01-13 12:13:18 +0000
commitacdc65486d7ae458fa5ebf457b4b019899c573a1 (patch)
treee6a4ecde6c581539c61064a3ae425218149b7124 /lib
parent66d19f3443aa941f9f9f12ac08555830d3b56d8a (diff)
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/evp/evp_names.c13
-rw-r--r--lib/libcrypto/evp/names.c7
2 files changed, 13 insertions, 7 deletions
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 <tb@openbsd.org>
*
@@ -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)
-{
-}