about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-07-03 11:02:45 +0000
committerEric Wong <e@80x24.org>2018-07-03 11:02:56 +0000
commitf13bbe5763362d51edb4827805e9520c3ca7c97e (patch)
tree3087a2429d770c277df665a70642847e97b80807
parenta12ca20f75c1f747a1c48b179f177a7ec03ea031 (diff)
downloadyahns-f13bbe5763362d51edb4827805e9520c3ca7c97e.tar.gz
This is apparently needed to pass tests with a newer version of
OpenSSL found in Debian 9
-rw-r--r--test/test_ssl.rb2
1 files changed, 2 insertions, 0 deletions
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