aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_x509store.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-04-28 13:29:01 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-04-28 13:29:01 +0900
commit7516103b9a102ba0cb9a175401ae08bb99c2d2f7 (patch)
tree45b068c68f9d72be5565369eb98089e5c1797428 /test/test_x509store.rb
parente3929aa5481b2d5bedfdfef75865b2ea49938852 (diff)
downloadruby-openssl-7516103b9a102ba0cb9a175401ae08bb99c2d2f7.tar.gz
test/test_x509store: skip OpenSSL::TestX509Store#test_set_errors
X509_STORE_add_{cert,crl}() will no longer fail with 'cert already in hash table' if they are called twice, since the (unreleased) next version of OpenSSL. Don't test that if we are built with OpenSSL >= 1.1.0.
Diffstat (limited to 'test/test_x509store.rb')
-rw-r--r--test/test_x509store.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_x509store.rb b/test/test_x509store.rb
index af0d8b28..a5dfa206 100644
--- a/test/test_x509store.rb
+++ b/test/test_x509store.rb
@@ -194,6 +194,7 @@ class OpenSSL::TestX509Store < OpenSSL::TestCase
end
def test_set_errors
+ return if OpenSSL::OPENSSL_VERSION_NUMBER >= 0x10100000
now = Time.now
ca1_cert = issue_cert(@ca1, @rsa2048, 1, [], nil, nil)
store = OpenSSL::X509::Store.new