From db735f67b9ade769928990cc0ec210a9c2c06f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 25 Feb 2014 17:57:59 +0100 Subject: [PATCH] Add tests for sess-id-based resume with OpenSSL --- tests/ssl-opt.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh index d31093459..ac8a1b5b6 100755 --- a/tests/ssl-opt.sh +++ b/tests/ssl-opt.sh @@ -345,6 +345,24 @@ run_test "Session resume using cache #7 (no timeout)" \ -s "a session has been resumed" \ -c "a session has been resumed" +run_test "Session resume using cache #8 (openssl client)" \ + "$P_SRV debug_level=4 tickets=0" \ + "($O_CLI -sess_out sess; $O_CLI -sess_in sess; rm -f sess)" \ + 0 \ + -s "found session ticket extension" \ + -S "server hello, adding session ticket extension" \ + -s "session successfully restored from cache" \ + -S "session successfully restored from ticket" \ + -s "a session has been resumed" + +run_test "Session resume using cache #9 (openssl server)" \ + "openssl s_server $O_ARGS" \ + "$P_CLI debug_level=4 tickets=0 reconnect=1" \ + 0 \ + -C "found session_ticket extension" \ + -C "parse new session ticket" \ + -c "a session has been resumed" + # Tests for Max Fragment Length extension run_test "Max fragment length #1" \