Simplify OBJ_sn2nid()
authortb <tb@openbsd.org>
Wed, 13 Dec 2023 23:31:25 +0000 (23:31 +0000)
committertb <tb@openbsd.org>
Wed, 13 Dec 2023 23:31:25 +0000 (23:31 +0000)
commit63389b84bb2f07ee2229256566de65ff419ed203
tree32575a86f7ce240258d7e208f7aafc3afd0ac7fb
parentf4a64515fca92f110ff043f56f80c410ac47cf3e
Simplify OBJ_sn2nid()

Another OBJ_bsearch_() elimination.

OBJ_sn2nid() is very similar to OBJ_obj2nid(). First it tries to retrieve
an object identifier with matching "short name" from the global hash of
added objects and then searches the table of built-in objects.

ok jsing
lib/libcrypto/objects/obj_dat.c