diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2020-02-17 08:14:47 +0000 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2020-07-18 13:17:10 +0900 |
commit | 0c4d93e6991d365cc77fbaaeae367b9651f2d4cd (patch) | |
tree | 6baae0bdd8eb17ee6ae153ed76a283a1d6d257f3 /test/openssl | |
parent | bad7ab35d1e38f47b09f15fc5750387ac73b2286 (diff) | |
download | ruby-0c4d93e6991d365cc77fbaaeae367b9651f2d4cd.tar.gz |
test/openssl/test_ssl: skip test_fallback_scsv if necessary
Run the test case only when the OpenSSL supports both TLS 1.1 and TLS
1.2. Note that the fallback SCSV mechanism is for TLS 1.2 or older and
not for 1.3.
Fixes: https://github.com/ruby/openssl/issues/336
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_ssl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index 45a9addf53..13c3bde34d 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -1352,6 +1352,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) |