From 721a0919125aaef71da76adcbdb7905843d039ab Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 2 Mar 2024 09:47:16 +0000 Subject: Remove OBJ_bsearch_() The only reason this has still been part of the public API was that libssl used it for cipher lookup. This was fixed by replacing the lookup by proper bsearch() -- why OpenSSL felt the need to reinvent ANSI C API badly will forever remain a mystery. The stack code in libcrypto still uses a version of this. This should be rewritten. It will be a bit easier once sk_find_ex() is removed. ok jsing --- src/lib/libcrypto/objects/obj_dat.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'src/lib/libcrypto/objects/obj_dat.c') diff --git a/src/lib/libcrypto/objects/obj_dat.c b/src/lib/libcrypto/objects/obj_dat.c index 1719cc73e2..bfa9ba3cc8 100644 --- a/src/lib/libcrypto/objects/obj_dat.c +++ b/src/lib/libcrypto/objects/obj_dat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: obj_dat.c,v 1.86 2024/02/26 15:00:30 tb Exp $ */ +/* $OpenBSD: obj_dat.c,v 1.87 2024/03/02 09:47:16 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -436,23 +436,6 @@ OBJ_ln2nid(const char *ln) } LCRYPTO_ALIAS(OBJ_ln2nid); -const void * -OBJ_bsearch_(const void *key, const void *base, int num, int size, - int (*cmp)(const void *, const void *)) -{ - OBJerror(ERR_R_DISABLED); - return NULL; -} -LCRYPTO_ALIAS(OBJ_bsearch_); - -const void * -OBJ_bsearch_ex_(const void *key, const void *base_, int num, int size, - int (*cmp)(const void *, const void *), int flags) -{ - OBJerror(ERR_R_DISABLED); - return NULL; -} - /* Convert an object name into an ASN1_OBJECT * if "noname" is not set then search for short and long names first. * This will convert the "dotted" form into an object: unlike OBJ_txt2nid -- cgit v1.2.3-55-g6feb