Return shared OIDs when decoding.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 17 Sep 2015 22:50:13 +0000 (23:50 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 19 Sep 2015 04:57:19 +0000 (05:57 +0100)
commit331bf00bed8c2839466b608e725c8aa5ef54622c
treef9aaa516a31cbe6dc3070959d6a86c1d2717f9d1
parent4fe1cbdff89768c5d1983988ce1022674a438bbb
Return shared OIDs when decoding.

When an OID is decoded see if it exists in the registered OID table
and if so return the shared OID instead of dynamically allocating
an ASN1_OBJECT.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/asn1/a_object.c