Test::Unit::TestCase from the test-unit gem does not provide a "pass" method. This is only used for counting the number of assertions. https://github.com/ruby/test-unit-ruby-core/commit/522868cb09rhenium (Kazuki Yamaguchi)
Under the M:N thread scheduler, a Ruby thread may be resumed on a different native thread after rb_thread_call_without_gvl() or rb_thread_call_with_gvl() re-acquires the GVL. Save the error queue before re-acquiring the GVL and restore ...rhenium (Kazuki Yamaguchi)
The verify_callback may be called with a non-empty error queue in some cases. Save the error queue before executing any Ruby code and restore it afterward. https://github.com/ruby/openssl/commit/4dd5991c4brhenium (Kazuki Yamaguchi)
OpenSSL may call some callbacks in OpenSSL::SSL after adding entries to the error queue. These callbacks must leave the queue intact, as SSL_get_error() relies on its contents to determine the cause of the error. Otherwise, we may end up...rhenium (Kazuki Yamaguchi)
Add a helper that wraps OSSL_ERR_STATE_*() in OpenSSL >= 3.2, and emulates the behavior with older OpenSSL versions and LibreSSL/AWS-LC. https://github.com/ruby/openssl/commit/ba23d84e6drhenium (Kazuki Yamaguchi)
For reference: [Feature #22400] was accepted and merged for Ruby 4.1. Array/String lengths were the other offender where `long` was used instead of a pointer-sized type in the C API, but they now use the new typedef `rb_len_t`.rhenium (Kazuki Yamaguchi)
Expose SSL_shutdown() directly so that Ruby programs can control closure of connection more precisely. Update SSLSocket#sysclose and #close_write to use this method. They rescue SystemCallError and SSLError to preserve the existing beha...rhenium (Kazuki Yamaguchi)
Prepare the Array objects for the argument inside rb_protect(). This object allocation may potentially raise an exception and corrupt OpenSSL's internal state. Also look up the callback Proc objects directly from SSLContext's instance v...rhenium (Kazuki Yamaguchi)
Use rb_protect() to avoid exiting from SSL_accept() or SSL_read() prematurely. Also set the callback to SSL_CTX instead of SSL, similarly to what we do for other callbacks configurable on SSLContext. https://github.com/ruby/openssl/com...rhenium (Kazuki Yamaguchi)
Currently, if the callback raises an exception or returns an invalid value, the handshake is resumed as if the callback has not been called. This is contrary to the documentation. Propagate exceptions raised by the callback to the origi...rhenium (Kazuki Yamaguchi)