From f13bbe5763362d51edb4827805e9520c3ca7c97e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 3 Jul 2018 11:02:45 +0000 Subject: test/test_ssl: set SSLContext#security_level=0 This is apparently needed to pass tests with a newer version of OpenSSL found in Debian 9 --- test/test_ssl.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_ssl.rb b/test/test_ssl.rb index 92be542..7909094 100644 --- a/test/test_ssl.rb +++ b/test/test_ssl.rb @@ -41,6 +41,7 @@ AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC def ssl_client(host, port) ctx = OpenSSL::SSL::SSLContext.new ctx.ciphers = "ADH" + ctx.security_level = 0 s = TCPSocket.new(host, port) ssl = OpenSSL::SSL::SSLSocket.new(s, ctx) ssl.connect @@ -51,6 +52,7 @@ AQjjxMXhwULlmuR/K+WwlaZPiLIBYalLAZQ7ZbOPeVkJ8ePao0eLAgEC def srv_ctx ctx = OpenSSL::SSL::SSLContext.new ctx.ciphers = "ADH" + ctx.security_level = 0 ctx.tmp_dh_callback = proc { TEST_KEY_DH1024 } ctx end -- cgit v1.2.3-24-ge0c7