summaryrefslogtreecommitdiff
path: root/test/openssl/test_x509crl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/test_x509crl.rb')
-rw-r--r--test/openssl/test_x509crl.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/openssl/test_x509crl.rb b/test/openssl/test_x509crl.rb
index 201a79e503b..64d895f0f58 100644
--- a/test/openssl/test_x509crl.rb
+++ b/test/openssl/test_x509crl.rb
@@ -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