]> arthur.barton.de Git - ngircd-alex.git/commit
testsuite: Pass -nameopt to openssl s_client.
authorSebastian Andrzej Siewior <sebastian@breakpoint.cc>
Tue, 30 Jan 2024 20:26:16 +0000 (21:26 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 5 Feb 2024 12:39:15 +0000 (13:39 +0100)
commitbdb55fb4b322b2c84530855a3b5148a0e387f5b4
tree56f59138392fd23ad222abc770b86cb7d01cf74c
parent79aefe43dd6af2f578e6aae1946078dae5417829
testsuite: Pass -nameopt to openssl s_client.

The default value for the -nameopt option changed in OpenSSL 3.2 from
`oneline' to `utf8'. The `oneline' option also included a space around
the fields which is not the case for `utf8'. This means that
CN = my.first.domain.tld

changed to

CN=my.first.domain.tld

and is now longer recognized, leading to test failure.
This can be fixed by either going back to `oneline' or keeping `utf8'
and adding additionally `space_eq'. Anoter way would be to teach the
expect that the space is optional.

Add explicit -nameopt option with `utf8,space_eq' which is understood by
by OpenSSL 3.2 and earlier to make explicit. Remove the wildcard.

Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
src/testsuite/connect-ssl-cert1-test.e
src/testsuite/connect-ssl-cert2-test.e