mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
4225b29df9
commit
f0cee0c6b8
1 changed files with 6 additions and 1 deletions
|
@ -1181,7 +1181,12 @@ end
|
||||||
start_server(OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => conf_proc) do |server, port|
|
start_server(OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => conf_proc) do |server, port|
|
||||||
ciphers.each do |cipher, ephemeral|
|
ciphers.each do |cipher, ephemeral|
|
||||||
ctx = OpenSSL::SSL::SSLContext.new
|
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|
|
server_connect(port, ctx) do |ssl|
|
||||||
if ephemeral
|
if ephemeral
|
||||||
assert_instance_of(ephemeral, ssl.tmp_key)
|
assert_instance_of(ephemeral, ssl.tmp_key)
|
||||||
|
|
Loading…
Reference in a new issue