From a8d79b9eb669cc060fe1266e397c2efbf666e96f Mon Sep 17 00:00:00 2001 From: Ronald Cron Date: Mon, 27 Jun 2022 09:05:35 +0200 Subject: [PATCH] ssl-opt.sh: Remove one pattern check In "Authentication: client cert not trusted, server required" ssl-opt.sh test, depending on client and server execution speed, the handshake on the client side may complete successfully: the TLS connection is aborted by the server because it is not able to authenticate the client but at that time the client may have completed the handshake on its side. Thus, do not check that the client handshake failed. Signed-off-by: Ronald Cron --- tests/ssl-opt.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index a96b8a451..79ea4c937 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -4914,7 +4914,6 @@ run_test "Authentication: client cert not trusted, server required" \ -s "x509_verify_cert() returned" \ -s "! The certificate is not correctly signed by the trusted CA" \ -s "! mbedtls_ssl_handshake returned" \ - -c "! mbedtls_ssl_handshake returned" \ -s "X509 - Certificate verification failed" run_test "Authentication: client badcert, server optional" \