Reject invalid constructed encodings.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 17 Dec 2014 14:34:36 +0000 (14:34 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 5 Jan 2015 15:22:34 +0000 (15:22 +0000)
commit5260f1a483d453ecf7aec9d1ec4be96432eec4d3
tree35a4e8cd6b1df249651a15eb73fb4a94301a85fe
parent1cb10d9c7d95e36fcc8ed0ade3eafda90e5e3172
Reject invalid constructed encodings.

According to X6.90 null, object identifier, boolean, integer and enumerated
types can only have primitive encodings: return an error if any of
these are received with a constructed encoding.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
(cherry picked from commit f5e4b6b5b566320a8d774f9475540f7d0e6a704d)

Conflicts:
crypto/asn1/asn1_err.c
crypto/asn1/asn1.h
crypto/asn1/asn1_err.c
crypto/asn1/tasn_dec.c