Skip to content

Commit de20e7d

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

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ext/openssl/ossl_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,8 @@ peeraddr_ip_str(VALUE self)
15601560
static int
15611561
is_real_socket(VALUE io)
15621562
{
1563+
// FIXME: DO NOT MERGE
1564+
return 0;
15631565
return RB_TYPE_P(io, T_FILE);
15641566
}
15651567

test/openssl/test_ssl.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,12 @@ def test_options_disable_versions
16111611
# Client only supports TLS 1.3
16121612
ctx2 = OpenSSL::SSL::SSLContext.new
16131613
ctx2.min_version = ctx2.max_version = OpenSSL::SSL::TLS1_3_VERSION
1614-
assert_nothing_raised { server_connect(port, ctx2) { } }
1614+
assert_nothing_raised {
1615+
server_connect(port, ctx2) { |ssl|
1616+
# Ensure SSL_accept() finishes successfully
1617+
ssl.puts("abc"); ssl.gets
1618+
}
1619+
}
16151620
}
16161621

16171622
# Server only supports TLS 1.2

0 commit comments

Comments
 (0)