summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authortb <>2023-11-29 13:39:34 +0000
committertb <>2023-11-29 13:39:34 +0000
commit5fc61c757deaae46e25cc163ae9e92831528fbc8 (patch)
treef6fe9a9fb0e2f88a15ec1b3eb39c745c2618710c /src/regress
parent49adf1fb564c33009eb18992e86dac6577364047 (diff)
downloadopenbsd-5fc61c757deaae46e25cc163ae9e92831528fbc8.tar.gz
openbsd-5fc61c757deaae46e25cc163ae9e92831528fbc8.tar.bz2
openbsd-5fc61c757deaae46e25cc163ae9e92831528fbc8.zip
Convert ssl3_cipher_by_id() to bsearch()
This was previously the only user of OBJ_bsearch_ssl_cipher_id(), which in turn is the one remaining user of OBJ_bsearch_() outside of libcrypto. OBJ_bsearch_() is OpenSSL's idiosyncratic reimplementation of ANSI C89's bsearch(). Since this used to be hidden behind macro insanity, the result was three inscrutable layers of comparison functions. It is much simpler and cleaner to use the standard API. Move all the code to s3_lib.c, since it's ony used there. In a few further diffs, OBJ_bsearch_() will be removed from libcrypto. Unfortunately, we'll need to keep OBJ_bsearch_ex(), because it is exposed via sk_find_ex(), which is exposed by M2Crypto... ok jsing
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions