diff options
author | jsing <> | 2022-03-13 14:58:14 +0000 |
---|---|---|
committer | jsing <> | 2022-03-13 14:58:14 +0000 |
commit | be7b42f7987f9d00704bbfd3d473b8f2256a02af (patch) | |
tree | 36f685d9bd7666801c581d5dd900e750fd99b22a /src/lib/libssl/tls_buffer.c | |
parent | 924b94dac6d48df7daea80927390c63e10863ed6 (diff) | |
download | openbsd-be7b42f7987f9d00704bbfd3d473b8f2256a02af.tar.gz openbsd-be7b42f7987f9d00704bbfd3d473b8f2256a02af.tar.bz2 openbsd-be7b42f7987f9d00704bbfd3d473b8f2256a02af.zip |
Remove free_cont from asn1_d2i_ex_primitive()/asn1_ex_c2i().
The constructed ASN.1 handling in asn1_d2i_ex_primitive() and asn1_ex_c2i()
currently has code to potentially avoid a malloc/memcpy - this is a less
common code path and it introduces a bunch of complexity for minimal gain.
In particular, we're manually adding a trailing NUL when ASN1_STRING_set()
would already do that for us, plus we currently manually free() the data on
an ASN1_STRING, rather than using freezero().
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls_buffer.c')
0 files changed, 0 insertions, 0 deletions