]> git.ipfire.org Git - thirdparty/openssl.git/commit
APPS/cmp: prevent HTTP client failure on -rspin option with too few filenames
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Tue, 14 Feb 2023 12:18:40 +0000 (13:18 +0100)
committerDr. David von Oheimb <dev@ddvo.net>
Fri, 28 Apr 2023 06:42:20 +0000 (08:42 +0200)
commit1f757df1f3de0c18cc22a4992d66e9a7b113f61d
tree2d08945ba92ae51abe284fa4475fedc0e2e49a26
parent57582450318e955632d8fb09f42bd90f2ed5d3b4
APPS/cmp: prevent HTTP client failure on -rspin option with too few filenames

The logic for handling inconsistent use of -rspin etc., -port, -server,
and -use_mock_srv options proved faulty.  This is fixed here, updating and
correcting also the documentation and diagnostics of the involved options.

In particular, the case that -rspin (or -rspout. reqin, -reqout) does not
provide enough message file names was not properly described and handled.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from https://github.com/openssl/openssl/pull/20295)
apps/cmp.c
doc/man1/openssl-cmp.pod.in
test/recipes/80-test_cmp_http_data/test_commands.csv