Bug #11366 ยป 0004-Don-t-force-SSLv3-in-test-as-it-is-insecure-and-may-.patch
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
|