diff options
author | Eric Wong <e@80x24.org> | 2018-07-03 11:02:45 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2018-07-03 11:02:56 +0000 |
commit | f13bbe5763362d51edb4827805e9520c3ca7c97e (patch) | |
tree | 3087a2429d770c277df665a70642847e97b80807 | |
parent | a12ca20f75c1f747a1c48b179f177a7ec03ea031 (diff) | |
download | yahns-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.rb | 2 |
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 |