i2d_ASN1_BOOLEAN(): allocate memory if the user didn't provide a buffer
authorRichard Levitte <levitte@openssl.org>
Mon, 13 Aug 2018 18:37:43 +0000 (20:37 +0200)
committerMatt Caswell <matt@openssl.org>
Tue, 14 Aug 2018 09:50:12 +0000 (10:50 +0100)
commit7d4c97add12cfa5d4589880b09d6139c3203e2f4
treeb9a184cffb4bc48c4485252ae7da19372b6ebe8d
parent0971432f6f6d8b40d797133621809bd31eb7bf4e
i2d_ASN1_BOOLEAN(): allocate memory if the user didn't provide a buffer

Just as was done recently for i2d_ASN1_OBJECT, we also make
i2d_ASN1_BOOLEAN comply with the documentation.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6943)
crypto/asn1/a_bool.c