about summary refs log tree commit homepage
path: root/test/test_ssl.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_ssl.rb')
-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