aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_x509store.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_x509store.rb')
-rw-r--r--test/test_x509store.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test_x509store.rb b/test/test_x509store.rb
index 0009813d..6412249b 100644
--- a/test/test_x509store.rb
+++ b/test/test_x509store.rb
@@ -1,6 +1,8 @@
# frozen_string_literal: false
require_relative "utils"
+if defined?(OpenSSL)
+
class OpenSSL::TestX509Store < OpenSSL::TestCase
def setup
super
@@ -207,7 +209,7 @@ class OpenSSL::TestX509Store < OpenSSL::TestCase
end
def test_set_errors
- return if OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10100000
+ return if openssl?(1, 1, 0) || libressl?
now = Time.now
ca1_cert = issue_cert(@ca1, @rsa2048, 1, [], nil, nil)
store = OpenSSL::X509::Store.new
@@ -235,3 +237,5 @@ class OpenSSL::TestX509Store < OpenSSL::TestCase
assert_raise(NoMethodError) { ctx.dup }
end
end
+
+end