CVSROOT:        /cvs
Module name:    src
Changes by:     js...@cvs.openbsd.org   2022/03/19 11:49:32

Modified files:
        lib/libcrypto/asn1: a_object.c asn1_locl.h 
        lib/libcrypto/objects: obj_dat.c 

Log message:
Provide t2i_ASN1_OBJECT_internal() and use it for OBJ_txt2obj()

The current OBJ_txt2obj() implementation converts the text to ASN.1
object content octets, builds a full DER encoding from it, then feeds
the entire thing back through the DER to ASN.1 object conversion. Rather
than doing this crazy dance, provide an t2i_ASN1_OBJECT_internal() function
that converts the text to ASN.1 object content octets, then creates a new
ASN1_OBJECT and attaches the content octets to it.

ok inoguchi@ tb@

Reply via email to