aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@ruby-lang.org>2016-04-07 00:10:41 +0000
committerKazuki Yamaguchi <k@rhe.jp>2016-05-31 11:31:27 +0900
commit9ed9fc536aafe134b899730a5b95e75dce033fe2 (patch)
treefa03d6f23a9e4f4e52f954b07d5ab7f1901a5a5e /test
parent7f6a6d5b8f207ed5aea6eef8291755aef3c43182 (diff)
downloadruby-openssl-9ed9fc536aafe134b899730a5b95e75dce033fe2.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')
-rw-r--r--test/test_ssl.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_ssl.rb b/test/test_ssl.rb
index f1e4ce3e..32f7cfde 100644
--- a/test/test_ssl.rb
+++ b/test/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)