ASN.1: extend the possibilities to embed data instead of pointers
authorRichard Levitte <levitte@openssl.org>
Wed, 12 Apr 2017 09:48:12 +0000 (11:48 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 13 Apr 2017 08:26:48 +0000 (10:26 +0200)
commitadc0e6f349d44168ef9250c651273651b455c513
tree921f1489bc5ece57d9bcc4c570b027982990f3c7
parente7bed7632c33211d5b7b03ace412bf4ffa3b98aa
ASN.1: extend the possibilities to embed data instead of pointers

Also, when "allocating" or "deallocating" an embedded item, never call
prim_new() or prim_free().  Call prim_clear() instead.

Fixes #3191

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3200)
crypto/asn1/tasn_fre.c
crypto/asn1/tasn_new.c
include/openssl/asn1t.h