mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/openssl] Skip a new test when old OpenSSL
It does not raise an error when setting an invalid value to SSLContext ciphers on Ubuntu 18.04. https://github.com/ruby/openssl/commit/8c96a69b0d
This commit is contained in:
parent
2725c5dbe0
commit
949c3afb48
1 changed files with 4 additions and 0 deletions
|
@ -1654,6 +1654,10 @@ class OpenSSL::TestSSL < OpenSSL::SSLTestCase
|
|||
end
|
||||
|
||||
def test_ciphers_method_bogus_csuite
|
||||
omit "Old #{OpenSSL::OPENSSL_LIBRARY_VERSION}" if
|
||||
year = OpenSSL::OPENSSL_LIBRARY_VERSION[/\A OpenSSL\s+[01]\..*\s\K\d+\z/x] and
|
||||
year.to_i <= 2018
|
||||
|
||||
ssl_ctx = OpenSSL::SSL::SSLContext.new
|
||||
|
||||
assert_raise_with_message(
|
||||
|
|
Loading…
Reference in a new issue