Reject invalid constructed encodings.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 16 Dec 2014 23:13:19 +0000 (23:13 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 17 Dec 2014 14:25:58 +0000 (14:25 +0000)
commit89f40f369f414b52e00f7230b0e3ce99e430a508
treef5954bc4e157d06748e19363e4519cb74b5d72e8
parent03af843039af758fc9bbb4ae6c09ec2bc715f2c5
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>
crypto/asn1/asn1.h
crypto/asn1/asn1_err.c
crypto/asn1/tasn_dec.c