Project

General

Profile

Bug #11366 ยป 0004-Don-t-force-SSLv3-in-test-as-it-is-insecure-and-may-.patch

jeremyevans0 (Jeremy Evans), 07/17/2015 09:35 PM

View differences:

test/openssl/test_ssl_session.rb
3.times do
sock = TCPSocket.new("127.0.0.1", port)
begin
ssl = OpenSSL::SSL::SSLSocket.new(sock, OpenSSL::SSL::SSLContext.new("SSLv3"))
ssl = OpenSSL::SSL::SSLSocket.new(sock, OpenSSL::SSL::SSLContext.new)
ssl.sync_close = true
ssl.session = last_client_session if last_client_session
ssl.connect
    (1-1/1)