diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 11:55:25 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-12 11:55:25 +0000 |
| commit | 1631532767461299131c7bc6ea4904e6689eb657 (patch) | |
| tree | 2beabe47eba284d80b788f26714367fcbed486d0 | |
| parent | d6a777ff67150919445da679cfd19a2df6beb74f (diff) | |
| download | ruby-1631532767461299131c7bc6ea4904e6689eb657.tar.gz ruby-1631532767461299131c7bc6ea4904e6689eb657.tar.xz ruby-1631532767461299131c7bc6ea4904e6689eb657.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/branches/ruby_1_8@9130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 7 | ||||
| -rw-r--r-- | test/openssl/test_pkcs7.rb | 6 |
2 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Mon Sep 12 20:53:06 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * 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 + Mon Sep 12 14:03:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org> * test/dbm/test_dbm.rb: remove locking test, which may not be 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" |
