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:56:47 +0000 (08:56 +0200)
commitaa99c6ee42754dc2fde65f2164e59e0e92306254
tree7a301c3b9618702e6876bd12998bd8f477cd5a1b
parent38f12f428084ebca77558b536bf9a87bf6b127a8
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)

(cherry picked from commit 1f757df1f3de0c18cc22a4992d66e9a7b113f61d)
apps/cmp.c
doc/man1/openssl-cmp.pod.in
test/recipes/80-test_cmp_http_data/test_commands.csv