Fix issue where OBJ_nid2obj doesn't always raise an error
authorHugo Landau <hlandau@openssl.org>
Thu, 3 Mar 2022 17:27:23 +0000 (17:27 +0000)
committerPauli <pauli@openssl.org>
Fri, 11 Mar 2022 02:30:22 +0000 (13:30 +1100)
commitadd8c29badb315cb8137655893826562ff12a581
tree3de7cb5097e4f277bac157c4e814f083956ae721
parent3aeed22c593ae036c2503ac07276768c82fe5782
Fix issue where OBJ_nid2obj doesn't always raise an error

This was previously fixed in 3.0 but not 1.1.

Fixes #13008.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17808)
crypto/objects/obj_dat.c
test/asn1_internal_test.c