Make i2d_ASN1_OBJECT() return -1 on error
authortb <tb@openbsd.org>
Wed, 29 May 2024 16:10:41 +0000 (16:10 +0000)
committertb <tb@openbsd.org>
Wed, 29 May 2024 16:10:41 +0000 (16:10 +0000)
commitf3776b5fc15391a8ae074019723a0d526a45c507
treeebea608e2719d20c804034aa2fc274daae1fc59f
parent7ffa44d1c0fe3bb431d6da37cf6bfa9d5c0db9e6
Make i2d_ASN1_OBJECT() return -1 on error

This is what the (not quite appropriately) referenced ASN1_item_i2d()
page documents for errors, matches what the RETURN VALUE section has
been documenting for ages, matches BoringSSL, it's the usal behavior
for i2d_*. It's also what OpenSSL (of course incorrectly) documents.

discussed with jsing
lib/libcrypto/asn1/a_object.c