Skip to content

Commit

Permalink
Fix dtls_client test with openssl 1.0.2 when localhost is IPv6
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
  • Loading branch information
gilles-peskine-arm committed Sep 4, 2024
1 parent d224f45 commit 11d18d0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/opt-testcases/sample.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,16 @@ run_test "Sample: ssl_client1, gnutls server, TLS 1.3" \
-S "Error" \
-C "error"

# In principle, this test case should work with OpenSSL 1.0.2g (which is
# our reference version of $OPENSSL at this time). However, on my machine,
# dtls_client connects to localhost using IPv6, but OpenSSL 1.0.2.g only
# accepts IPv4 connections. So use OPENSSL_NEXT, which is at least 1.1.1
# and should be IPv6-aware.
requires_protocol_version dtls12
requires_openssl_next
run_test "Sample: dtls_client, openssl server, DTLS 1.2" \
-P 4433 \
"$O_SRV -dtls1_2" \
"$O_NEXT_SRV -dtls1_2" \
"$PROGRAMS_DIR/dtls_client" \
0 \
-s "Echo this" \
Expand Down

0 comments on commit 11d18d0

Please sign in to comment.