mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
de9b195a9c
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@ |
||
---|---|---|
.. | ||
bin | ||
etc | ||
gnu | ||
include | ||
lib | ||
libexec | ||
misc | ||
sbin | ||
sys | ||
usr.bin | ||
usr.sbin | ||
Makefile |