diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-07 00:10:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-07 00:10:41 +0000 |
commit | 77a58d067f559d0812f4b0e98f2ec413c704aca7 (patch) | |
tree | 83c3d9015d8b5faaecb3e3ec071fc659279ab930 /test/openssl/test_ssl.rb | |
parent | 18454a8a9c5220362916a805a6699e2780e0354e (diff) | |
download | ruby-77a58d067f559d0812f4b0e98f2ec413c704aca7.tar.gz |
test_ssl.rb: skip unsupported ciphers
* test/openssl/test_ssl.rb (test_get_ephemeral_key): skip
unsupported ciphers. [GH-1318]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_ssl.rb')
-rw-r--r-- | test/openssl/test_ssl.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index d1281c116a..6e9078dace 100644 --- a/test/openssl/test_ssl.rb +++ b/test/openssl/test_ssl.rb @@ -1181,7 +1181,12 @@ end start_server(OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => conf_proc) do |server, port| ciphers.each do |cipher, ephemeral| ctx = OpenSSL::SSL::SSLContext.new - ctx.ciphers = cipher + begin + ctx.ciphers = cipher + rescue OpenSSL::SSL::SSLError => e + next if /no cipher match/ =~ e.message + raise + end server_connect(port, ctx) do |ssl| if ephemeral assert_instance_of(ephemeral, ssl.tmp_key) |