]> git.ipfire.org Git - thirdparty/openssl.git/commit
commands: fix parameter value output
authorPauli <ppzgs1@gmail.com>
Mon, 31 Mar 2025 22:15:40 +0000 (09:15 +1100)
committerMatt Caswell <matt@openssl.org>
Fri, 18 Apr 2025 14:23:42 +0000 (15:23 +0100)
commitfad8c04dedb18379d3dd51db8cce05011e3ff008
tree34161d3d681dba780351882339bcdc2559d5819d
parent6f26301c83bf7796240a484249510d625f968028
commands: fix parameter value output

The parameter value output library routine was incorrect.  It used the
incorrect length when printing fetched parameter sizes.  It also printed
a string which was potentially not zero terminated.  Both of these are
addressed here.

Additionally, octet strings have their initial bytes printed in hex.

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27221)
apps/lib/app_params.c