View Ticket
2024-05-28
00:45 Closed ticket [c6b35cf0e3]: Test tls-bug58-1.0 fails on FreeBSD plus 5 other changes artifact: 412e2029f3 user: bohagan
2023-11-20
02:12 New ticket [c6b35cf0e3]. artifact: 7ab9a49fd3 user: doofus

Ticket Hash: c6b35cf0e3cdd56b9f560dd7ff013a08abae3506
Title: Test tls-bug58-1.0 fails on FreeBSD
Status: Closed Type: Code Defect
Severity: Important Priority: Immediate
Subsystem: Resolution: Open
Last Modified: 2024-05-28 00:45:00
Version Found In: 1.7.22
User Comments:
doofus added on 2023-11-20 02:12:27:

The test expects the connection to fail -- which it does, but the error message does not match the test's expectation:

---- Result was:
handshake failed: unsupported protocol
---- Result should have been (exact matching):
handshake failed: wrong version number

This is on FreeBSD-13.x with OpenSSL 1.1.1q-freebsd 5 Jul 2022...

Relaxing the matching requirement helps:

@@ -2027,5 +2028,5 @@
 } {{} 0 {} 0 {}}

-test tls-bug58-1.0 {test protocol negotiation failure} {socket} {
+test tls-bug58-1.0 {test protocol negotiation failure} -constraints {socket} -body {
     # Following code is based on what was reported in bug #58. Prior
     # to fix the program would crash with a segfault.
@@ -2062,5 +2063,5 @@
     }
     set ::done
-} {handshake failed: wrong version number}
+} -result {handshake failed: *} -match glob

 # cleanup

bohagan added on 2024-05-28 00:45:00:
This is fixed as part of the changes in [0afa2bde0647bd77].