Fix i2d_X509_AUX, update docs and add tests
authorViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 2 May 2016 18:46:51 +0000 (14:46 -0400)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Wed, 11 May 2016 05:46:06 +0000 (01:46 -0400)
commitfde2257f055f187e8e78542ea6d64ad6c206d10b
tree8255a3511f0df776420218852273595f75fd5bcb
parent9b5164ce7788d6985b005e410bb7b53bd553c99e
Fix i2d_X509_AUX, update docs and add tests

When *pp is NULL, don't write garbage, return an unexpected pointer
or leak memory on error.

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
crypto/x509/x_x509.c
doc/crypto/d2i_X509.pod
test/build.info
test/danetest.c
test/recipes/80-test_x509aux.t [new file with mode: 0644]
test/x509aux.c [new file with mode: 0644]