diff options
author | jsing <> | 2022-03-19 17:49:32 +0000 |
---|---|---|
committer | jsing <> | 2022-03-19 17:49:32 +0000 |
commit | d46a632ca35d3f62b29f97c14868a75a30a0ea74 (patch) | |
tree | d6cf88609bfc19f0101b68dd40457a903ba5c53a /src/lib/libssl/test/asn1test.c | |
parent | ee5ce96399d588340c4f57044a36ddb289fe2a7a (diff) | |
download | openbsd-d46a632ca35d3f62b29f97c14868a75a30a0ea74.tar.gz openbsd-d46a632ca35d3f62b29f97c14868a75a30a0ea74.tar.bz2 openbsd-d46a632ca35d3f62b29f97c14868a75a30a0ea74.zip |
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@
Diffstat (limited to 'src/lib/libssl/test/asn1test.c')
0 files changed, 0 insertions, 0 deletions