diff options
author | tb <> | 2024-01-13 12:13:17 +0000 |
---|---|---|
committer | tb <> | 2024-01-13 12:13:17 +0000 |
commit | cd09f454c46f1b578821a6417252d11d4753e0b6 (patch) | |
tree | a745424ae931a5b0dd0986e95dfd597de92f2fe8 /src | |
parent | 9819c77d3658919dfcbece3402fd2093c72c81bb (diff) | |
download | openbsd-cd09f454c46f1b578821a6417252d11d4753e0b6.tar.gz openbsd-cd09f454c46f1b578821a6417252d11d4753e0b6.tar.bz2 openbsd-cd09f454c46f1b578821a6417252d11d4753e0b6.zip |
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 'src')
-rw-r--r-- | src/lib/libcrypto/evp/evp_names.c | 13 | ||||
-rw-r--r-- | src/lib/libcrypto/evp/names.c | 7 |
2 files changed, 13 insertions, 7 deletions
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c index 660e23f66e..26e1df2f87 100644 --- a/src/lib/libcrypto/evp/evp_names.c +++ b/src/lib/libcrypto/evp/evp_names.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: evp_names.c,v 1.4 2024/01/13 11:12:32 tb Exp $ */ | 1 | /* $OpenBSD: evp_names.c,v 1.5 2024/01/13 12:13:17 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> |
4 | * | 4 | * |
@@ -1760,3 +1760,14 @@ EVP_get_digestbyname(const char *name) | |||
1760 | 1760 | ||
1761 | return digest->digest(); | 1761 | return digest->digest(); |
1762 | } | 1762 | } |
1763 | |||
1764 | /* | ||
1765 | * XXX - this is here because most of its job was to clean up the dynamic | ||
1766 | * tables of ciphers and digests. If we get an evp_lib.c again, it should | ||
1767 | * probably move there. | ||
1768 | */ | ||
1769 | |||
1770 | void | ||
1771 | EVP_cleanup(void) | ||
1772 | { | ||
1773 | } | ||
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c index a0b19917e1..7b5f6bad6c 100644 --- a/src/lib/libcrypto/evp/names.c +++ b/src/lib/libcrypto/evp/names.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: names.c,v 1.29 2024/01/13 11:57:51 tb Exp $ */ | 1 | /* $OpenBSD: names.c,v 1.30 2024/01/13 12:13:17 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -75,8 +75,3 @@ EVP_add_digest(const EVP_MD *md) | |||
75 | { | 75 | { |
76 | return 1; | 76 | return 1; |
77 | } | 77 | } |
78 | |||
79 | void | ||
80 | EVP_cleanup(void) | ||
81 | { | ||
82 | } | ||