mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/openssl/test_x509store.rb (test_set_errors): Redhat is
distributing a patched version of OpenSSL that allows multiple CRL for a key (multi-crl.patch.) Make test pass on such env. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ce1581475
commit
5e8aa0a1d2
2 changed files with 17 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Wed Jun 22 01:28:13 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/openssl/test_x509store.rb (test_set_errors): Redhat is
|
||||||
|
distributing a patched version of OpenSSL that allows multiple CRL
|
||||||
|
for a key (multi-crl.patch.) Make test pass on such env.
|
||||||
|
|
||||||
Tue Jun 21 21:50:37 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
Tue Jun 21 21:50:37 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
|
||||||
|
|
||||||
* lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close
|
* lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close
|
||||||
|
|
|
@ -212,9 +212,17 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
|
||||||
crl2 = issue_crl(revoke_info, 2, now+1800, now+3600, [],
|
crl2 = issue_crl(revoke_info, 2, now+1800, now+3600, [],
|
||||||
ca1_cert, @rsa2048, OpenSSL::Digest::SHA1.new)
|
ca1_cert, @rsa2048, OpenSSL::Digest::SHA1.new)
|
||||||
store.add_crl(crl1)
|
store.add_crl(crl1)
|
||||||
assert_raise(OpenSSL::X509::StoreError){
|
if /0\.9\.8.*-rhel/ =~ OpenSSL::OPENSSL_VERSION
|
||||||
store.add_crl(crl2) # add CRL issued by same CA twice.
|
# RedHat is distributing a patched version of OpenSSL that allows
|
||||||
}
|
# multiple CRL for a key (multi-crl.patch)
|
||||||
|
assert_nothing_raised do
|
||||||
|
store.add_crl(crl2) # add CRL issued by same CA twice.
|
||||||
|
end
|
||||||
|
else
|
||||||
|
assert_raise(OpenSSL::X509::StoreError){
|
||||||
|
store.add_crl(crl2) # add CRL issued by same CA twice.
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue