From 5c3f1e34b559c9b4372bf48aab63b61a6cd5edbb Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 8 May 2019 10:40:20 +0200 Subject: ossl_bsearch(): New generic internal binary search utility function OBJ_bsearch_ and OBJ_bsearch_ex_ are generic functions that don't really belong with the OBJ API, but should rather be generic utility functions. The ending underscore indicates that they are considered internal, even though they are declared publicly. Since crypto/stack/stack.c uses OBJ_bsearch_ex_, the stack API ends up depending on the OBJ API, which is unnecessary, and carries along other dependencies. Therefor, a generic internal function is created, ossl_bsearch(). This removes the unecessary dependencies. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8899) --- crypto/build.info | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crypto/build.info') diff --git a/crypto/build.info b/crypto/build.info index 30dcf8c91e..fa99d61bd6 100644 --- a/crypto/build.info +++ b/crypto/build.info @@ -18,12 +18,12 @@ SOURCE[../libcrypto]=\ ebcdic.c uid.c o_time.c o_str.c o_dir.c o_fopen.c ctype.c \ threads_pthread.c threads_win.c threads_none.c getenv.c \ o_init.c o_fips.c mem_sec.c init.c context.c sparse_array.c \ - trace.c provider.c params.c \ + trace.c provider.c params.c bsearch.c \ {- $target{cpuid_asm_src} -} {- $target{uplink_aux_src} -} # FIPS module SOURCE[../providers/fips]=\ - cryptlib.c mem.c mem_clr.c params.c + cryptlib.c mem.c mem_clr.c params.c bsearch.c DEPEND[cversion.o]=buildinf.h -- cgit v1.2.3