summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/DH_generate_key.3
diff options
context:
space:
mode:
authortb <>2022-03-26 16:34:21 +0000
committertb <>2022-03-26 16:34:21 +0000
commit62e5583bb1b862560432775b3c0765db00173fc6 (patch)
treeb479f5e5efe3b6b03f82d771d623f8ae686fc6d0 /src/lib/libcrypto/man/DH_generate_key.3
parent2ce3af26514a8bfe23e0605aa5b31dc0ab865be1 (diff)
downloadopenbsd-62e5583bb1b862560432775b3c0765db00173fc6.tar.gz
openbsd-62e5583bb1b862560432775b3c0765db00173fc6.tar.bz2
openbsd-62e5583bb1b862560432775b3c0765db00173fc6.zip
name constraints: be more careful with NULs
An IA5STRING is a Pascal string that can have embedded NULs and is not NUL terminated (except that for legacy reasons it happens to be). Instead of taking the strlen(), use the already known ASN.1 length and use strndup() instead of strdup() to generate NUL terminated strings after some existing code has checked that there are no embedded NULs. In v2i_GENERAL_NAME_ex() use %.*s to print the bytes. This is not optimal and might be switched to using strvis() later. ok beck inoguchi jsing
Diffstat (limited to 'src/lib/libcrypto/man/DH_generate_key.3')
0 files changed, 0 insertions, 0 deletions