2424# define TO_SOCKET (s ) (s)
2525#endif
2626
27- #ifndef TYPEOF_TIMEVAL_TV_USEC
28- # if INT_MAX >= 1000000
29- # define TYPEOF_TIMEVAL_TV_USEC int
30- # else
31- # define TYPEOF_TIMEVAL_TV_USEC long
32- # endif
33- #endif
34-
3527#define GetSSLCTX (obj , ctx ) do { \
3628 TypedData_Get_Struct((obj), SSL_CTX, &ossl_sslctx_type, (ctx)); \
3729} while (0)
@@ -1566,9 +1558,8 @@ ossl_sslctx_flush_sessions(int argc, VALUE *argv, VALUE self)
15661558#ifdef OSSL_USE_QUIC
15671559/*
15681560 * call-seq:
1569- * SSLContext.quic(:client) -> ctx
1570- * SSLContext.quic(:client_thread) -> ctx
1571- * SSLContext.quic(:server) -> ctx
1561+ * SSLContext.quic(:client) -> ctx
1562+ * SSLContext.quic(:server) -> ctx
15721563 *
15731564 * Creates a new SSLContext for QUIC. The argument specifies the QUIC mode.
15741565 * Requires OpenSSL 3.2+.
@@ -1587,14 +1578,8 @@ ossl_sslctx_s_quic(VALUE klass, VALUE quic_sym)
15871578
15881579 if (quic_id == rb_intern ("client" ))
15891580 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
15951581 else if (quic_id == rb_intern ("server" ))
15961582 method = OSSL_QUIC_server_method ();
1597- #endif
15981583 else
15991584 ossl_raise (rb_eArgError , "unknown QUIC mode: %" PRIsVALUE , quic_sym );
16001585
0 commit comments