Skip to content

Commit

Permalink
tests: Fix "SSL db: Implementation" test with openssl > 3.2.0.
Browse files Browse the repository at this point in the history
In OpenSSL 3.2.0 (81b741f) all the "alert" error messages were updated to
replace "sslv3" with "ssl/tls".

This commit updates the "SSL db: implementation" test to support both the
pre-openssl 3.2.0 error message: "sslv3 alert certificate unknown" and the
post-openssl 3.2.0 error message: "ssl/tls alert certificate unknown".

Acked-by: Eelco Chaudron <[email protected]>
Signed-off-by: Timothy Redaelli <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
drizzt authored and igsilya committed Mar 8, 2024
1 parent 6c082a8 commit d2a42f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/ovsdb-server.at
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,10 @@ AT_CHECK_UNQUOTED(
[ignore])
# The error message for being unable to negotiate a shared ciphersuite
# is 'sslv3 alert handshake failure'. This is not the clearest message.
# In openssl 3.2.0 all the error messages were updated to replace 'sslv3'
# with 'ssl/tls'.
AT_CHECK_UNQUOTED(
[grep "sslv3 alert handshake failure" output], [0],
[grep -E "(sslv3|ssl/tls) alert handshake failure" output], [0],
[stdout],
[ignore])
OVSDB_SERVER_SHUTDOWN(["
Expand Down

0 comments on commit d2a42f3

Please sign in to comment.