1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/regress
beck de9b195a9c Change X509_NAME_get_index_by[NID|OBJ] to be safer.
Currently these functions return raw ASN1_STRING bytes as
a C string and ignore the encoding in a "hold my beer I am
a toolkit not a functioning API surely it's just for testing
and you'd never send nasty bytes" kind of way.

Sadly some callers seem to use them to fetch things liks
subject name components for comparisons, and often just
use the result as a C string.

Instead, encode the resulting bytes as UTF-8 so it is
something like "text",

Add a failure case if the length provided is inadequate
or if the resulting text would contain an nul byte.

based on boringssl.

nits by dlg@
ok tb@
2023-05-02 14:13:05 +00:00
..
bin Cope with recent changes to alignment of command column. 2023-03-09 06:22:40 +00:00
etc Bring this regress into nicer shape. Add all recent architectures. 2021-09-27 18:27:14 +00:00
gnu Add subdir gnu/lib to regress. 2022-03-23 22:34:51 +00:00
include
lib Change X509_NAME_get_index_by[NID|OBJ] to be safer. 2023-05-02 14:13:05 +00:00
libexec Treat symlinks better in $ORIGIN determination in ld.so 2023-04-09 23:41:47 +00:00
misc Print skipped on non applicable architectures. 2022-12-08 12:14:11 +00:00
sbin remove duplicate includes 2023-04-19 12:58:15 +00:00
sys cope with recent vmm changes 2023-04-27 05:42:44 +00:00
usr.bin Run open rsync and ports rsync programs against each other using 2023-04-29 00:20:46 +00:00
usr.sbin Make rpki-client choose the verification time of the time it is invoked 2023-04-27 08:37:53 +00:00
Makefile Remove all references to "make depend" from regress. 2017-07-07 23:55:21 +00:00