diff options
author | jsing <> | 2022-03-13 14:58:14 +0000 |
---|---|---|
committer | jsing <> | 2022-03-13 14:58:14 +0000 |
commit | fa2518a98adbc41d019ee1af4e3eb7fd994861b2 (patch) | |
tree | 36f685d9bd7666801c581d5dd900e750fd99b22a /src/lib/libcrypto/x509/x509_constraints.c | |
parent | 8eb1efc13e25a74ea09b172249b5103c0855f2ee (diff) | |
download | openbsd-fa2518a98adbc41d019ee1af4e3eb7fd994861b2.tar.gz openbsd-fa2518a98adbc41d019ee1af4e3eb7fd994861b2.tar.bz2 openbsd-fa2518a98adbc41d019ee1af4e3eb7fd994861b2.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/libcrypto/x509/x509_constraints.c')
0 files changed, 0 insertions, 0 deletions