Suppress warning: OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
813ba53bbc
commit
338456ad94
@ -1,3 +1,4 @@
|
|||||||
|
require_relative "../ruby/envutil"
|
||||||
require_relative "utils"
|
require_relative "utils"
|
||||||
|
|
||||||
if defined?(OpenSSL)
|
if defined?(OpenSSL)
|
||||||
@ -21,7 +22,9 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
|
|||||||
cert = OpenSSL::X509::Certificate.new
|
cert = OpenSSL::X509::Certificate.new
|
||||||
store = OpenSSL::X509::Store.new
|
store = OpenSSL::X509::Store.new
|
||||||
ctx = OpenSSL::X509::StoreContext.new(store, cert, [])
|
ctx = OpenSSL::X509::StoreContext.new(store, cert, [])
|
||||||
ctx.cleanup
|
EnvUtil.suppress_warning do
|
||||||
|
ctx.cleanup
|
||||||
|
end
|
||||||
ctx.verify
|
ctx.verify
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user