From d745a1a9b761cc12b00700b2bac7620616b2f202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 8 Sep 2015 12:40:43 +0200 Subject: [PATCH] Add tests for hard reconnect --- tests/ssl-opt.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index 77db588db..ba6e578c1 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -2867,6 +2867,28 @@ run_test "DTLS cookie: enabled, nbio" \ -s "hello verification requested" \ -S "SSL - The requested feature is not available" +# Tests for client reconnecting from the same port with DTLS + +run_test "DTLS client reconnect from same port: reference" \ + "$P_SRV dtls=1 exchanges=2" \ + "$P_CLI dtls=1 exchanges=2 debug_level=2" \ + 0 \ + -C "resend" \ + -S "Client initiated reconnection from same port" + +run_test "DTLS client reconnect from same port: reconnect" \ + "$P_SRV dtls=1 exchanges=2" \ + "$P_CLI dtls=1 exchanges=2 debug_level=2 reconnect_hard=1" \ + 0 \ + -C "resend" \ + -s "Client initiated reconnection from same port" + +run_test "DTLS client reconnect from same port: reconnect, nbio" \ + "$P_SRV dtls=1 exchanges=2 nbio=2" \ + "$P_CLI dtls=1 exchanges=2 debug_level=2 reconnect_hard=1" \ + 0 \ + -s "Client initiated reconnection from same port" + # Tests for various cases of client authentication with DTLS # (focused on handshake flows and message parsing)