From 11279b13f586441a8fcc5109ee1907f33eb0cc24 Mon Sep 17 00:00:00 2001 From: Emilia Kasper Date: Thu, 21 Jul 2016 14:04:00 +0200 Subject: Test client-side resumption Add tests for resuming with a different client version. This happens in reality when clients persist sessions on disk through upgrades. Reviewed-by: Rich Salz --- test/ssl_test.tmpl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/ssl_test.tmpl') diff --git a/test/ssl_test.tmpl b/test/ssl_test.tmpl index 31699183a1..206c4a1524 100644 --- a/test/ssl_test.tmpl +++ b/test/ssl_test.tmpl @@ -11,6 +11,9 @@ server = {-$testname-}-server{- if (%resume_server) { $OUT .= "\nresume-server = $testname-resume-server"; } + if (%resume_client) { + $OUT .= "\nresume-client = $testname-resume-client"; + } -} client = {-$testname-}-client @@ -37,6 +40,12 @@ client = {-$testname-}-client foreach my $key (sort keys %client) { $OUT .= qq{$key} . " = " . qq{$client{$key}\n} if defined $client{$key}; } + if (%resume_client) { + $OUT .= "\n[$testname-resume-client]\n"; + foreach my $key (sort keys %resume_client) { + $OUT .= qq{$key} . " = " . qq{$resume_client{$key}\n} if defined $resume_client{$key}; + } + } -} [test-{-$idx-}] {- -- cgit v1.2.3