summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_constraints.c
diff options
context:
space:
mode:
authorjsing <>2022-03-13 14:58:14 +0000
committerjsing <>2022-03-13 14:58:14 +0000
commitfa2518a98adbc41d019ee1af4e3eb7fd994861b2 (patch)
tree36f685d9bd7666801c581d5dd900e750fd99b22a /src/lib/libcrypto/x509/x509_constraints.c
parent8eb1efc13e25a74ea09b172249b5103c0855f2ee (diff)
downloadopenbsd-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