]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ssl: Remove empty lines from "show ssl ocsp-response <id>" output
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Tue, 11 Jan 2022 09:11:10 +0000 (10:11 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 3 Feb 2022 08:57:24 +0000 (09:57 +0100)
commit2e7d1eb2a7dad61ee5661086005d3f85ee6ad6ba
treef0cc99dc826014dddbe8e5556a1cdc4afbb9f540
parentbfa3236c6c3550eb3f53f3fb98738aaabe77c689
BUG/MINOR: ssl: Remove empty lines from "show ssl ocsp-response <id>" output

There were empty lines in the output of the CLI's "show ssl
ocsp-response <id>" command. The plain "show ssl ocsp-response" command
(without parameter) was already managed in commit
cc750efbc5c2180ed63b222a51029609ea96d0f7. This patch adds an extra space
to those lines so that the only existing empty lines actually mark the
end of the output. This requires to post-process the buffer filled by
OpenSSL's OCSP_RESPONSE_print function (which produces the output of the
"openssl ocsp -respin <ocsp.pem>" command). This way the output of our
command still looks the same as openssl's one.

Must be backported in 2.5.
src/ssl_sock.c