Skip to content

Commit bbfb68e

Browse files
committed
[DO NOT MERGE] Always use Ruby IO
Let's see what will break with this.
1 parent deb44f3 commit bbfb68e

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

ext/openssl/ossl_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,8 @@ peeraddr_ip_str(VALUE io)
16141614
static int
16151615
is_real_socket(VALUE io)
16161616
{
1617+
// FIXME: DO NOT MERGE
1618+
return 0;
16171619
return RB_TYPE_P(io, T_FILE);
16181620
}
16191621

test/openssl/test_ssl.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,12 @@ def test_options_disable_versions
16311631
# Client only supports TLS 1.3
16321632
ctx2 = OpenSSL::SSL::SSLContext.new
16331633
ctx2.min_version = ctx2.max_version = OpenSSL::SSL::TLS1_3_VERSION
1634-
assert_nothing_raised { server_connect(port, ctx2) { } }
1634+
assert_nothing_raised {
1635+
server_connect(port, ctx2) { |ssl|
1636+
# Ensure SSL_accept() finishes successfully
1637+
ssl.puts("abc"); ssl.gets
1638+
}
1639+
}
16351640
}
16361641

16371642
# Server only supports TLS 1.2

0 commit comments

Comments
 (0)