Fix test_ssl_new when compiled with no-tls1_2 or no-dtls1_2
authorMatt Caswell <matt@openssl.org>
Tue, 28 Feb 2017 15:53:55 +0000 (15:53 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 28 Feb 2017 16:30:55 +0000 (16:30 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2788)
(cherry picked from commit 4d118fe007692de2dd8c5dd084254f8d3b308167)

test/recipes/80-test_ssl_new.t
test/ssl-tests/17-renegotiate.conf.in
test/ssl-tests/18-dtls-renegotiate.conf.in

index 5348a7338863d209ef4fb0db73ba817e138f176e..2f6a69a305cf1f7f48513203a469b7a3c4232896 100644 (file)
@@ -54,6 +54,8 @@ my %conf_dependent_tests = (
   "07-dtls-protocol-version.conf" => !$is_default_dtls,
   "10-resumption.conf" => !$is_default_tls,
   "11-dtls_resumption.conf" => !$is_default_dtls,
+  "17-renegotiate.conf" => disabled("tls1_2"),
+  "18-dtls-renegotiate.conf" => disabled("dtls1_2"),
 );
 
 # Add your test here if it should be skipped for some compile-time
index fde57bc0835a65cb3431b85f5e03d8e6fb684cc6..c919a16f54abf934a949054eb6d15cd3387c58ea 100644 (file)
@@ -13,6 +13,7 @@ use strict;
 use warnings;
 
 package ssltests;
+use OpenSSL::Test::Utils;
 
 my $dir_sep = $^O ne "VMS" ? "/" : "";
 
@@ -102,7 +103,9 @@ our @tests = (
             "ResumptionExpected" => "No",
             "ExpectedResult" => "Success"
         }
-    },
+    }
+);
+our @tests_tls1_2 = (
     {
         name => "renegotiate-aead-to-non-aead",
         server => {
@@ -178,5 +181,7 @@ our @tests = (
             "ResumptionExpected" => "No",
             "ExpectedResult" => "Success"
         }
-    },
+    }
 );
+
+push @tests, @tests_tls1_2 unless disabled("tls1_2");
index 43046e3a022faf9eeda1625cf5a882643606feb6..f32ab374807ee495da8d5eadea346f21d13319a3 100644 (file)
@@ -13,6 +13,7 @@ use strict;
 use warnings;
 
 package ssltests;
+use OpenSSL::Test::Utils;
 
 my $dir_sep = $^O ne "VMS" ? "/" : "";
 
@@ -94,7 +95,9 @@ our @tests = (
             "ResumptionExpected" => "No",
             "ExpectedResult" => "Success"
         }
-    },
+    }
+);
+our @tests_dtls1_2 = (
     {
         name => "renegotiate-aead-to-non-aead",
         server => {
@@ -168,3 +171,6 @@ our @tests = (
         }
     },
 );
+
+
+push @tests, @tests_dtls1_2 unless disabled("dtls1_2");