UI_UTIL_wrap_read_pem_callback: make sure to terminate the string received
authorRichard Levitte <levitte@openssl.org>
Wed, 28 Jun 2017 09:17:24 +0000 (11:17 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 28 Jun 2017 12:24:28 +0000 (14:24 +0200)
commit3816be5d4a6a1f17dc4b7d398c42398c48e62e1a
treef0615364a3785982a69a274360a25d8053252a2e
parente041f3b8baf3b9a2d57f5eb818a6b0aebd96e953
UI_UTIL_wrap_read_pem_callback: make sure to terminate the string received

The callback we're wrapping around may or may not return a
NUL-terminated string.  Let's ensure it is.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3791)
crypto/ui/ui_util.c