Use error checked X509_ALGOR_set0_by_nid
authortb <tb@openbsd.org>
Wed, 17 Apr 2024 13:54:39 +0000 (13:54 +0000)
committertb <tb@openbsd.org>
Wed, 17 Apr 2024 13:54:39 +0000 (13:54 +0000)
commit4846d4e7e646caf37e4b58ca14ae58d5ce9e4ab9
tree7e75f3be4f1c9f76edf46c2637066fca2d9af216
parent590b72c0edb98d8085b16fc456da48c36a4569fb
Use error checked X509_ALGOR_set0_by_nid

While setting the parameters to type V_ASN1_UNDEF can't actually fail,
it is cleaner to just do the check. Using the by_nid() variant also
removes the need for an unchecked nested OBJ_nid2obj() call.

ok jsing
lib/libcrypto/ec/ec_ameth.c