Fix string termination and length setting in OSSL_PARAM_BLD_push_utf8_string()
authorRichard Levitte <levitte@openssl.org>
Tue, 23 Feb 2021 17:19:38 +0000 (18:19 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 24 Feb 2021 18:50:10 +0000 (19:50 +0100)
commit6be27456e1346121b1fed797e92353733b59e16e
tree36cd44573a17b146c9021cee4afd93bd2dc11738
parentaf8bd1d8359705c6a980c65b0c27c3e90fc43bea
Fix string termination and length setting in OSSL_PARAM_BLD_push_utf8_string()

OSSL_PARAM_BLD_push_utf8_string() was still setting the length in
bytes of the UTF8 string to include the terminating NUL byte, while
recent changes excludes that byte from the length.  It's still made to
add a NUL byte at the end of the string no matter what.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14035)
crypto/param_build.c