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>
Wed, 17 Dec 2014 14:40:09 +0000 (14:40 +0000)
commitfcd9b1073addc83890e60dd81d63e749ced01428
tree05e85988cccba9502fb131996e889cc61b309428
parent036df29387e994d665259065e5c11c0e5b41f826
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)
crypto/asn1/asn1.h
crypto/asn1/asn1_err.c
crypto/asn1/tasn_dec.c