summaryrefslogtreecommitdiffstats
path: root/test/openssl/test_pkcs7.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-12 11:55:25 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-12 11:55:25 +0000
commit30d60d271a023bfa5c373b715f82f66546b9d7f3 (patch)
tree1211892664ae3b22e1fc9e57c26dedbd56f5c866 /test/openssl/test_pkcs7.rb
parent82f993d2ad983874e1e329f6cff390d3486138ef (diff)
downloadruby-30d60d271a023bfa5c373b715f82f66546b9d7f3.tar.gz
ruby-30d60d271a023bfa5c373b715f82f66546b9d7f3.tar.xz
ruby-30d60d271a023bfa5c373b715f82f66546b9d7f3.zip
* test/openssl/test_pkcs7.rb (test_enveloped): skip this test
to avoid a bug of PKCS7_enctypt() (only if ext/openssl is compiled with OpenSSL-0.9.7d or earlier versions). http://www.mail-archive.com/openssl-dev@openssl.org/msg17376.html git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/openssl/test_pkcs7.rb')
-rw-r--r--test/openssl/test_pkcs7.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/openssl/test_pkcs7.rb b/test/openssl/test_pkcs7.rb
index a2153af36..9b472c179 100644
--- a/test/openssl/test_pkcs7.rb
+++ b/test/openssl/test_pkcs7.rb
@@ -125,6 +125,12 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
end
def test_enveloped
+ if OpenSSL::OPENSSL_VERSION_NUMBER <= 0x0090704f
+ # PKCS7_encrypt() of OpenSSL-0.9.7d goes to SEGV.
+ # http://www.mail-archive.com/openssl-dev@openssl.org/msg17376.html
+ return
+ end
+
certs = [@ee1_cert, @ee2_cert]
cipher = OpenSSL::Cipher::AES.new("128-CBC")
data = "aaaaa\nbbbbb\nccccc\n"