Dr. Stephen Henson d275dbe6eb Free up passed ASN.1 structure if reused.
Change the "reuse" behaviour in ASN1_item_d2i: if successful the old
structure is freed and a pointer to the new one used. If it is not
successful then the passed structure is untouched.

Exception made for primitive types so ssl_asn1.c still works.

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>

Conflicts:
	doc/crypto/d2i_X509.pod
2015-12-02 21:40:11 +01:00
..
2015-01-22 09:46:18 +00:00
2015-04-18 14:44:54 +01:00
2015-01-22 09:46:18 +00:00
2015-03-19 13:00:11 +00:00
2015-11-24 16:55:54 +00:00
2015-03-08 16:32:35 +00:00
2015-01-22 09:46:18 +00:00
2014-07-04 18:44:24 +01:00
2015-01-22 09:46:18 +00:00
2015-01-22 09:46:18 +00:00
2015-01-22 09:46:18 +00:00
2015-01-22 09:46:18 +00:00
2015-03-12 13:46:44 +00:00
2015-03-02 13:43:40 +00:00
2015-03-02 13:43:40 +00:00
2015-01-22 09:46:18 +00:00
2015-01-22 09:46:18 +00:00
2015-01-22 09:46:18 +00:00
2015-04-16 13:53:17 -04:00