]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix 80-test_cmp_http.t to be more flexible regarding IP versions
authorRichard Levitte <levitte@openssl.org>
Thu, 7 Sep 2023 05:34:33 +0000 (07:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Fri, 8 Sep 2023 06:25:09 +0000 (08:25 +0200)
commit769e47ecddd1ca4292ffa792f45998629447d743
tree60fb1c3be018a12e7b66bbc1511ba2e5581d6775
parentb0da24bd2dc64e3a01df24e01aba37fe4c269230
Fix 80-test_cmp_http.t to be more flexible regarding IP versions

Because apps/lib/http_server.c had a hard coded "[::]" for the accept host,
80-test_cmp_http.t assumed that it would always get a CMP server on an IPv6
address, and tested for that.

With the fix in apps/lib/http_server.c, that test was of course doomed to
fail.  Since CMP should be about IP version testing, 80-test_cmp_http.t is
adapted to allow the Mock server to accept connections on either IP version,
and the test for IPv6 is removed.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21989)
test/recipes/80-test_cmp_http.t
test/recipes/80-test_cmp_http_data/test_connection.csv