aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2020-02-17 18:30:31 +0900
committerGitHub <noreply@github.com>2020-02-17 18:30:31 +0900
commit32dea72bd213f51701f762aeb7287a7813264783 (patch)
treeeaa87e02afacdf20d26811fcdda315d5e6cb5cfa
parent7b8810e88dcd6521018b43bb60e4764bec13ac6d (diff)
parent6f2e6d7cf777b378b3b51c239abecb4e4af49824 (diff)
downloadruby-openssl-32dea72bd213f51701f762aeb7287a7813264783.tar.gz
Merge pull request #338 from rhenium/ky/ssl-test-fix-fallback-scsv
test/openssl/test_ssl: skip test_fallback_scsv if necessary
-rw-r--r--test/openssl/test_ssl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index eb5b77be..eae369a1 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -1419,6 +1419,10 @@ end
end
def test_fallback_scsv
+ supported = check_supported_protocol_versions
+ return unless supported.include?(OpenSSL::SSL::TLS1_1_VERSION) &&
+ supported.include?(OpenSSL::SSL::TLS1_2_VERSION)
+
pend "Fallback SCSV is not supported" unless \
OpenSSL::SSL::SSLContext.method_defined?(:enable_fallback_scsv)