test_cipher.rb: OpenSSL 1.0.2
* test/openssl/test_cipher.rb (OpenSSL::TestCipher#test_ciphers): OpenSSL 1.0.2 does not allow wrap mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
56d4257a67
commit
9f9034bba1
@ -104,7 +104,12 @@ class OpenSSL::TestCipher < Test::Unit::TestCase
|
|||||||
def test_ciphers
|
def test_ciphers
|
||||||
OpenSSL::Cipher.ciphers.each{|name|
|
OpenSSL::Cipher.ciphers.each{|name|
|
||||||
next if /netbsd/ =~ RUBY_PLATFORM && /idea|rc5/i =~ name
|
next if /netbsd/ =~ RUBY_PLATFORM && /idea|rc5/i =~ name
|
||||||
assert(OpenSSL::Cipher::Cipher.new(name).is_a?(OpenSSL::Cipher::Cipher))
|
begin
|
||||||
|
assert_kind_of(OpenSSL::Cipher::Cipher, OpenSSL::Cipher::Cipher.new(name))
|
||||||
|
rescue OpenSSL::Cipher::CipherError => e
|
||||||
|
next if /wrap\z/ =~ name and e.message == 'wrap mode not allowed'
|
||||||
|
raise
|
||||||
|
end
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user