diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-20 07:18:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-20 07:18:37 +0000 |
commit | 3a902c4dbd366ddfe696ae0565f0c0174996f9cd (patch) | |
tree | 3c0f38ce94b989d784794337c0db41b684dbc9c7 /test/openssl | |
parent | c7b58831a3dd9982fcc718515ca0306200acda30 (diff) | |
download | ruby-3a902c4dbd366ddfe696ae0565f0c0174996f9cd.tar.gz |
Skip patented algorithms: IDEA and RC5 on NetBSD.
On NetBSD, if it uses patented algorithms without explicit option,
openssl will abort.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_cipher.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb index eb2f4fec57..0e4a7759fe 100644 --- a/test/openssl/test_cipher.rb +++ b/test/openssl/test_cipher.rb @@ -72,6 +72,7 @@ class OpenSSL::TestCipher < Test::Unit::TestCase if OpenSSL::OPENSSL_VERSION_NUMBER > 0x00907000 def test_ciphers OpenSSL::Cipher.ciphers.each{|name| + next if /netbsd/ =~ RUBY_PLATFORM && /idea|rc5/i =~ name assert(OpenSSL::Cipher::Cipher.new(name).is_a?(OpenSSL::Cipher::Cipher)) } end |