Skip to content

Commit e946ec8

Browse files
committed
Remove client thread mode
1 parent 6e19b35 commit e946ec8

2 files changed

Lines changed: 2 additions & 21 deletions

File tree

ext/openssl/ossl_ssl.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,9 +1566,8 @@ ossl_sslctx_flush_sessions(int argc, VALUE *argv, VALUE self)
15661566
#ifdef OSSL_USE_QUIC
15671567
/*
15681568
* call-seq:
1569-
* SSLContext.quic(:client) -> ctx
1570-
* SSLContext.quic(:client_thread) -> ctx
1571-
* SSLContext.quic(:server) -> ctx
1569+
* SSLContext.quic(:client) -> ctx
1570+
* SSLContext.quic(:server) -> ctx
15721571
*
15731572
* Creates a new SSLContext for QUIC. The argument specifies the QUIC mode.
15741573
* Requires OpenSSL 3.2+.
@@ -1587,14 +1586,8 @@ ossl_sslctx_s_quic(VALUE klass, VALUE quic_sym)
15871586

15881587
if (quic_id == rb_intern("client"))
15891588
method = OSSL_QUIC_client_method();
1590-
#ifdef OSSL_USE_QUIC
1591-
else if (quic_id == rb_intern("client_thread"))
1592-
method = OSSL_QUIC_client_thread_method();
1593-
#endif
1594-
#ifdef OSSL_USE_QUIC
15951589
else if (quic_id == rb_intern("server"))
15961590
method = OSSL_QUIC_server_method();
1597-
#endif
15981591
else
15991592
ossl_raise(rb_eArgError, "unknown QUIC mode: %"PRIsVALUE, quic_sym);
16001593

test/openssl/test_quic.rb

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,6 @@ def test_quic_context_client
1414
assert_predicate ctx, :quic?
1515
end
1616

17-
def test_quic_context_client_thread
18-
pend "QUIC not supported" unless QUIC_SUPPORTED
19-
# :client_thread may not be available on all builds
20-
begin
21-
ctx = OpenSSL::SSL::SSLContext.quic(:client_thread)
22-
assert_equal :client_thread, ctx.quic
23-
assert_predicate ctx, :quic?
24-
rescue OpenSSL::SSL::SSLError
25-
pend "QUIC client_thread method not available"
26-
end
27-
end
28-
2917
def test_quic_context_unknown_mode_raises
3018
pend "QUIC not supported" unless QUIC_SUPPORTED
3119

0 commit comments

Comments
 (0)