summaryrefslogtreecommitdiffstats
path: root/test/test_ocsp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ocsp.rb')
-rw-r--r--test/test_ocsp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_ocsp.rb b/test/test_ocsp.rb
index 865bb523..0440634a 100644
--- a/test/test_ocsp.rb
+++ b/test/test_ocsp.rb
@@ -122,7 +122,7 @@ class OpenSSL::TestOCSP < OpenSSL::TestCase
assert_equal true, req.verify([@cert], store, OpenSSL::OCSP::NOINTERN)
ret = req.verify([@cert], store)
- if ret || OpenSSL::OPENSSL_VERSION =~ /OpenSSL/ && OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10002000
+ if ret || openssl?(1, 0, 2) || libressl?(2, 4, 2)
assert_equal true, ret
else
# RT2560; OCSP_request_verify() does not find signer cert from 'certs' when