Rewrite ASN1_OBJECT content to ascii/text conversion.
authorjsing <jsing@openbsd.org>
Wed, 2 Mar 2022 11:28:00 +0000 (11:28 +0000)
committerjsing <jsing@openbsd.org>
Wed, 2 Mar 2022 11:28:00 +0000 (11:28 +0000)
commit09967094a1adca610891d1268a89a074775ea993
treecf8238d8f1123bc5b521267c0fffb82aa913ec72
parent2253120044e27eb7d0edd9511dcf1f5675a0e47b
Rewrite ASN1_OBJECT content to ascii/text conversion.

Rewrite the ASN1_OBJECT content to ascii/text conversion code using CBB and
CBS. Currently there is a strange split with i2t_ASN1_OBJECT() calling
OBJ_obj2txt() which implements the conversion, while OBJ_txt2obj() calls
back into the misnamed a2d_ASN1_OBJECT() function. Move the conversion
code into asn1/a_object.c and have OBJ_txt2obj() call that instead.

ok inoguchi@ tb@
lib/libcrypto/asn1/a_object.c
lib/libcrypto/asn1/asn1_locl.h
lib/libcrypto/objects/obj_dat.c