From 4f9eba544f5c9dc7eb72b7af0139e38dafb18ffb Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 09:41:02 +0000 Subject: Remove unused public OBJ_NAME_* API This functionality has been disabled for a few months. Now it is high time to garbage collect it. ok jsing --- src/lib/libcrypto/evp/evp_names.c | 54 +-------------------------------------- 1 file changed, 1 insertion(+), 53 deletions(-) (limited to 'src/lib/libcrypto/evp') diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c index a3af2ed1a6..ad325bad35 100644 --- a/src/lib/libcrypto/evp/evp_names.c +++ b/src/lib/libcrypto/evp/evp_names.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_names.c,v 1.9 2024/03/02 09:36:40 tb Exp $ */ +/* $OpenBSD: evp_names.c,v 1.10 2024/03/02 09:41:02 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler * @@ -1914,55 +1914,3 @@ void EVP_cleanup(void) { } - -/* - * XXX - Remove all the garbage below in the next bump. - */ - -int -OBJ_NAME_init(void) -{ - OBJerror(ERR_R_DISABLED); - return 0; -} -LCRYPTO_ALIAS(OBJ_NAME_init); - -int -OBJ_NAME_new_index(unsigned long (*hash_func)(const char *), - int (*cmp_func)(const char *, const char *), - void (*free_func)(const char *, int, const char *)) -{ - OBJerror(ERR_R_DISABLED); - return 0; -} -LCRYPTO_ALIAS(OBJ_NAME_new_index); - -const char * -OBJ_NAME_get(const char *name, int type) -{ - OBJerror(ERR_R_DISABLED); - return NULL; -} -LCRYPTO_ALIAS(OBJ_NAME_get); - -int -OBJ_NAME_add(const char *name, int type, const char *data) -{ - /* No error to avoid polluting xca's error stack. */ - return 0; -} -LCRYPTO_ALIAS(OBJ_NAME_add); - -int -OBJ_NAME_remove(const char *name, int type) -{ - OBJerror(ERR_R_DISABLED); - return 0; -} -LCRYPTO_ALIAS(OBJ_NAME_remove); - -void -OBJ_NAME_cleanup(int type) -{ -} -LCRYPTO_ALIAS(OBJ_NAME_cleanup); -- cgit v1.2.3-55-g6feb