mirror of
https://github.com/openbsd/src.git
synced 2025-01-10 06:47:55 -08:00
f5d1ae505e
This is an un-revert with nits of the previously landed change to do this which broke libtls. libtls has now been changed to not use this function. This change ensures that if something is returned it is "text" (UTF-8) and a C string not containing a NUL byte. Historically callers to this function assume the result is text and a C string however the OpenSSL version simply hands them the bytes from an ASN1_STRING and expects them to know bad things can happen which they almost universally do not check for. Partly inspired by goings on in boringssl. ok jsing@ tb@ |
||
---|---|---|
.. | ||
bin | ||
etc | ||
gnu | ||
include | ||
lib | ||
libexec | ||
misc | ||
sbin | ||
sys | ||
usr.bin | ||
usr.sbin | ||
Makefile |