Dedup OBJ_nid2{obj,sn,ln}()
authortb <tb@openbsd.org>
Thu, 14 Dec 2023 14:33:23 +0000 (14:33 +0000)
committertb <tb@openbsd.org>
Thu, 14 Dec 2023 14:33:23 +0000 (14:33 +0000)
commit2de383af3084b56ea919ad3a2dd35bc1308e5278
treebd0285911c38cd3e434ef4faba2b901dc61b32f2
parentd6514e0fadfd6647939b0ac6ccce475f77d1e512
Dedup OBJ_nid2{obj,sn,ln}()

First get the obj corresponding to nid, then inspect its sn and ln.
Shaves off 40 lines of code and will simplify locking.
lib/libcrypto/objects/obj_dat.c