"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/drb/test_drbssl.rb" between
ruby-2.7.3.tar.gz and ruby-2.7.4.tar.gz

About: Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). Stable release of 2.7 series.

test_drbssl.rb  (ruby-2.7.3):test_drbssl.rb  (ruby-2.7.4)
skipping to change at line 36 skipping to change at line 36
data = open("sample.key"){|io| io.read } data = open("sample.key"){|io| io.read }
config[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(data) config[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(data)
data = open("sample.crt"){|io| io.read } data = open("sample.crt"){|io| io.read }
config[:SSLCertificate] = OpenSSL::X509::Certificate.new(data) config[:SSLCertificate] = OpenSSL::X509::Certificate.new(data)
rescue rescue
# $stderr.puts "Switching to use self-signed certificate" # $stderr.puts "Switching to use self-signed certificate"
config[:SSLCertName] = config[:SSLCertName] =
[ ["C","JP"], ["O","Foo.DRuby.Org"], ["CN", "Sample"] ] [ ["C","JP"], ["O","Foo.DRuby.Org"], ["CN", "Sample"] ]
end end
@server = DRb::DRbServer.new('drbssl://:0', manager, config) @server = DRb::DRbServer.new('drbssl://localhost:0', manager, config)
end end
end end
class TestDRbSSLCore < Test::Unit::TestCase class TestDRbSSLCore < Test::Unit::TestCase
include DRbCore include DRbCore
def setup def setup
@drb_service = DRbSSLService.new @drb_service = DRbSSLService.new
super super
setup_service 'ut_drb_drbssl.rb' setup_service 'ut_drb_drbssl.rb'
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)