Skip to content

Commit 7715b44

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

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
@@ -1606,7 +1606,12 @@ def test_options_disable_versions
16061606
# Client only supports TLS 1.3
16071607
ctx2 = OpenSSL::SSL::SSLContext.new
16081608
ctx2.min_version = ctx2.max_version = OpenSSL::SSL::TLS1_3_VERSION
1609-
assert_nothing_raised { server_connect(port, ctx2) { } }
1609+
assert_nothing_raised {
1610+
server_connect(port, ctx2) { |ssl|
1611+
# Ensure SSL_accept() finishes successfully
1612+
ssl.puts("abc"); ssl.gets
1613+
}
1614+
}
16101615
}
16111616

16121617
# Server only supports TLS 1.2

0 commit comments

Comments
 (0)