Don't write out a bad OID
authorMatt Caswell <matt@openssl.org>
Thu, 22 Mar 2018 14:33:05 +0000 (14:33 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 27 Mar 2018 15:10:07 +0000 (16:10 +0100)
commitf3f8e72f494b36d05e0d04fe418f92b692fbb261
tree8122583b5dc9ec398d0566e00b5a7175aeb41c0a
parent69a61c26f2148d04c9d529c67064a9c36dacf69b
Don't write out a bad OID

If we don't have OID data for an object then we should fail if we
are asked to encode the ASN.1 for that OID.

Fixes #5723

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5725)

(cherry picked from commit 53c9818e970fc0c22d77e19fda3b3e6f6c9e759d)
crypto/asn1/tasn_enc.c