summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@ruby-lang.org>2011-09-20 07:18:37 +0000
committernaruse <naruse@ruby-lang.org>2011-09-20 07:18:37 +0000
commit999b9ceae0e06e025ab937931dd4d772f367e35f (patch)
tree29ec30beaee2779fc09e1b0c89d3161081131159 /test
parent73f27cabbe292e5fb9e599e924546f0b2b360754 (diff)
downloadruby-openssl-history-999b9ceae0e06e025ab937931dd4d772f367e35f.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')
-rw-r--r--test/test_cipher.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_cipher.rb b/test/test_cipher.rb
index eb2f4fe..0e4a775 100644
--- a/test/test_cipher.rb
+++ b/test/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