mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* rescue LoadError. [ruby-dev:23539]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d3ba99c15f
commit
6988d86035
4 changed files with 35 additions and 7 deletions
|
@ -1,6 +1,11 @@
|
|||
require "openssl"
|
||||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
class OpenSSL::TestX509Certificate < Test::Unit::TestCase
|
||||
def setup
|
||||
|
@ -166,3 +171,5 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase
|
|||
}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
require "openssl"
|
||||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
class OpenSSL::TestX509CRL < Test::Unit::TestCase
|
||||
def setup
|
||||
|
@ -207,3 +212,5 @@ class OpenSSL::TestX509CRL < Test::Unit::TestCase
|
|||
assert_equal(false, crl.verify(@dsa512))
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
require "openssl"
|
||||
begin
|
||||
require "openssl"
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
class OpenSSL::TestX509Name < Test::Unit::TestCase
|
||||
def setup
|
||||
@obj_type_tmpl = Hash.new(OpenSSL::ASN1::PRINTABLESTRING)
|
||||
|
@ -153,3 +158,5 @@ class OpenSSL::TestX509Name < Test::Unit::TestCase
|
|||
assert_equal(OpenSSL::ASN1::PRINTABLESTRING, ary[4][2])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
require "openssl"
|
||||
begin
|
||||
require "openssl"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
rescue LoadError
|
||||
end
|
||||
require "test/unit"
|
||||
require File.join(File.dirname(__FILE__), "utils.rb")
|
||||
|
||||
if defined?(OpenSSL)
|
||||
|
||||
class OpenSSL::TestX509Request < Test::Unit::TestCase
|
||||
def setup
|
||||
|
@ -131,3 +136,5 @@ class OpenSSL::TestX509Request < Test::Unit::TestCase
|
|||
issue_csr(0, @dn, @dsa512, OpenSSL::Digest::MD5.new) }
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue