diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/drb/test_drbssl.rb | 4 | ||||
| -rw-r--r-- | test/drb/ut_array_drbssl.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb index 0c7e39ca70..f2d9a20271 100644 --- a/test/drb/test_drbssl.rb +++ b/test/drb/test_drbssl.rb @@ -23,6 +23,10 @@ class DRbSSLService < DRbService config[:SSLVerifyCallback] = lambda{ |ok,x509_store| true } + if RUBY_PLATFORM.match?(/openbsd/) + config[:SSLMinVersion] = OpenSSL::SSL::TLS1_2_VERSION + config[:SSLMaxVersion] = OpenSSL::SSL::TLS1_2_VERSION + end begin data = open("sample.key"){|io| io.read } config[:SSLPrivateKey] = OpenSSL::PKey::RSA.new(data) diff --git a/test/drb/ut_array_drbssl.rb b/test/drb/ut_array_drbssl.rb index 5938d9ff3d..778021a0b5 100644 --- a/test/drb/ut_array_drbssl.rb +++ b/test/drb/ut_array_drbssl.rb @@ -24,6 +24,10 @@ AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC config = Hash.new config[:SSLTmpDhCallback] = proc { DRbTests::TEST_KEY_DH1024 } + if RUBY_PLATFORM.match?(/openbsd/) + config[:SSLMinVersion] = OpenSSL::SSL::TLS1_2_VERSION + config[:SSLMaxVersion] = OpenSSL::SSL::TLS1_2_VERSION + end config[:SSLVerifyMode] = OpenSSL::SSL::VERIFY_PEER config[:SSLVerifyCallback] = lambda{|ok,x509_store| true |
