START	lib/libssl/openssl-ruby	2025-03-18T03:20:38Z

==== openssl-ruby-test ====
rm -f .test
cd /usr/src/regress/lib/libssl/openssl-ruby && exec make test
mkdir -p build
touch .builddir
cd build &&  ruby33 /usr/local/share/openssl-ruby-tests/ext/openssl/extconf.rb &&  make;
checking for rb_io_descriptor()... yes
checking for rb_io_maybe_wait(0, Qnil, Qnil, Qnil) in ruby/io.h... yes
checking for rb_io_timeout() in ruby/io.h... yes
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for pkg-config for openssl... [" ", "", "-lssl -lcrypto"]
checking for openssl/ssl.h... yes
checking for LIBRESSL_VERSION_NUMBER in openssl/opensslv.h... yes
checking for LibreSSL version >= 3.9.0... yes
checking for RAND_egd() in openssl/rand.h... no
checking for EVP_PBE_scrypt("", 0, (unsigned char *)"", 0, 0, 0, 0, 0, NULL, 0) in openssl/evp.h... no
checking for EVP_PKEY_check(NULL) in openssl/evp.h... no
checking for SSL_set0_tmp_dh_pkey(NULL, NULL) in openssl/ssl.h... no
checking for ERR_get_error_all(NULL, NULL, NULL, NULL, NULL) in openssl/err.h... no
checking for SSL_CTX_load_verify_file(NULL, "") in openssl/ssl.h... no
checking for BN_check_prime(NULL, NULL, NULL) in openssl/bn.h... no
checking for EVP_MD_CTX_get0_md(NULL) in openssl/evp.h... no
checking for EVP_MD_CTX_get_pkey_ctx(NULL) in openssl/evp.h... no
checking for EVP_PKEY_eq(NULL, NULL) in openssl/evp.h... no
checking for EVP_PKEY_dup(NULL) in openssl/evp.h... no
checking for TS_VERIFY_CTX_set0_certs(NULL, NULL) in openssl/ts.h... no
creating extconf.h
creating Makefile
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_asn1.c
/usr/local/share/openssl-ruby-tests/ext/openssl/ossl_asn1.c:85:24: warning: implicit conversion loses integer precision: 'time_t' (aka 'long long') to 'long' [-Wshorten-64-to-32]
        *days = rb_long2int(t / 86400);
                ~~~~~~~~~~~ ~~^~~~~~~
1 warning generated.
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_bio.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_bn.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_cipher.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_config.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_digest.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_engine.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_hmac.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_kdf.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_ns_spki.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_ocsp.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkcs12.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkcs7.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkey.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkey_dh.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkey_dsa.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkey_ec.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_pkey_rsa.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_provider.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_rand.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_ssl.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_ssl_session.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_ts.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509attr.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509cert.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509crl.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509ext.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509name.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509req.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509revoked.c
compiling /usr/local/share/openssl-ruby-tests/ext/openssl/ossl_x509store.c
linking shared-object openssl.so
touch .build
cd build &&  env SKIP_EXPECTED_FAILURES=true ruby33 -I.  -I/usr/local/share/openssl-ruby-tests/test/openssl  -I/usr/local/share/openssl-ruby-tests/lib  -e 'Dir["/usr/local/share/openssl-ruby-tests/test/openssl/test_*.rb"].each{|f| require f}'  -- --no-use-color --no-show-detail-immediately
Loaded suite -e
Started
POOOOOOOOPOOPP/usr/local/share/openssl-ruby-tests/test/openssl/test_bn.rb:351: warning: Ractor is experimental, and the behavior may change in future versions of Ruby! Also there are many implementation issues.


1) Pending: test_client_ca(OpenSSL::TestSSL): skip failing client CA test
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:478:in `test_client_ca'
     475: 
     476:   def test_client_ca
     477:     if ENV['SKIP_EXPECTED_FAILURES']
  => 478:       pend "skip failing client CA test"
     479:     end
     480: 
     481:     ctx_proc = Proc.new do |ctx|

2) Pending: test_s_parse_include(OpenSSL::TestConfig): .include directive is not supported
/usr/local/share/openssl-ruby-tests/test/openssl/test_config.rb:126:in `test_s_parse_include'
     123:   def test_s_parse_include
     124:     if !openssl?(1, 1, 1, 2)
     125:       # OpenSSL < 1.1.1 parses .include directive as a normal assignment
  => 126:       pend ".include directive is not supported"
     127:     end
     128: 
     129:     in_tmpdir("ossl-config-include-test") do |dir|

3) Pending: test_scrypt_rfc7914_first(OpenSSL::TestKDF): scrypt is not implemented
/usr/local/share/openssl-ruby-tests/test/openssl/test_kdf.rb:105:in `test_scrypt_rfc7914_first'
     102:   end
     103: 
     104:   def test_scrypt_rfc7914_first
  => 105:     pend "scrypt is not implemented" unless OpenSSL::KDF.respond_to?(:scrypt) # OpenSSL >= 1.1.0
     106:     pass = ""
     107:     salt = ""
     108:     n = 16

4) Pending: test_scrypt_rfc7914_second(OpenSSL::TestKDF): scrypt is not implemented
/usr/local/share/openssl-ruby-tests/test/openssl/test_kdf.rb:120:in `test_scrypt_rfc7914_second'
     117:   end
     118: 
     119:   def test_scrypt_rfc7914_second
  => 120:     pend "scrypt is not implemented" unless OpenSSL::KDF.respond_to?(:scrypt) # OpenSSL >= 1.1.0
     121:     pass = "password"
     122:     salt = "NaCl"
     123:     n = 1024

Omissions:
 1) Omission: LibreSSL and AWS-LC do not support OPENSSL_CONF [test_ctx_options_config(OpenSSL::TestSSL)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:42:in `test_ctx_options_config'
 2) Omission: TLS 1.1 support is required to run this test case [test_fallback_scsv(OpenSSL::TestSSL)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:1800:in `test_fallback_scsv'
 3) Omission: Keylog callback is not supported [test_keylog_cb(OpenSSL::TestSSL)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:970:in `test_keylog_cb'
 4) Omission: LibreSSL and AWS-LC do not support OPENSSL_CONF [test_minmax_version_system_default(OpenSSL::TestSSL)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:1437:in `test_minmax_version_system_default'
 5) Omission: LibreSSL and AWS-LC do not support OPENSSL_CONF [test_respect_system_default_min(OpenSSL::TestSSL)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:1481:in `test_respect_system_default_min'
 6) Omission: LibreSSL does not call session_new_cb in TLS 1.3 [test_ctx_client_session_cb_tls13(OpenSSL::TestSSLSession)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl_session.rb:262:in `test_ctx_client_session_cb_tls13'
 7) Omission: LibreSSL does not call session_new_cb in TLS 1.3 [test_ctx_client_session_cb_tls13_exception(OpenSSL::TestSSLSession)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl_session.rb:286:in `test_ctx_client_session_cb_tls13_exception'
 8) Omission: id-aes192-wrap-pad is not supported: unsupported cipher algorithm (id-aes192-wrap-pad) [test_aes_keywrap_pad(OpenSSL::TestCipher)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_cipher.rb:367:in `rescue in test_aes_keywrap_pad'
 9) Omission: Only for FIPS mode environment [test_fips_mode_get_is_true_on_fips_mode_enabled(OpenSSL::TestFIPS)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_fips.rb:9:in `test_fips_mode_get_is_true_on_fips_mode_enabled'
10) Omission: Only for FIPS mode environment [test_fips_mode_get_with_fips_mode_set(OpenSSL::TestFIPS)]
/usr/local/share/openssl-ruby-tests/test/openssl/test_fips.rb:42:in `test_fips_mode_get_with_fips_mode_set'
Finished in 63.367936978 seconds.
-------------------------------------------------------------------------------
575 tests, 4172 assertions, 0 failures, 0 errors, 4 pendings, 10 omissions, 0 notifications
99.292% passed
-------------------------------------------------------------------------------
9.07 tests/s, 65.84 assertions/s
touch .test

==== test_client_ca ====
cd build &&  ruby33 -I. -I/usr/local/share/openssl-ruby-tests/test/openssl  -I/usr/local/share/openssl-ruby-tests/lib  /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb  -n test_client_ca
Loaded suite /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl
Started
F
===============================================================================
Failure: test_client_ca(OpenSSL::TestSSL):
  exceptions on 1 threads:
  #<Thread:0x6be5c91c /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:251 dead>:
  /usr/local/share/openssl-ruby-tests/lib/openssl/ssl.rb:551:in `accept': SSL_accept returned=1 errno=0 peeraddr=(null) state=SSLv3 read certificate verify A: peer did not return a certificate (OpenSSL::SSL::SSLError)
  	from /usr/local/share/openssl-ruby-tests/lib/openssl/ssl.rb:551:in `accept'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:226:in `block (3 levels) in start_server'
  	from <internal:kernel>:187:in `loop'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:222:in `block (2 levels) in start_server'
  /usr/local/lib/ruby/gems/3.3/gems/test-unit-3.6.1/lib/test/unit/assertions.rb:60:in `block in assert_block': <[#<OpenSSL::X509::Name CN=CA,DC=ruby-lang,DC=org>]> expected but was (Test::Unit::AssertionFailedError)
  <nil>.
  	from /usr/local/lib/ruby/gems/3.3/gems/test-unit-3.6.1/lib/test/unit/assertions.rb:1918:in `_wrap_assertion'
  	from /usr/local/lib/ruby/gems/3.3/gems/test-unit-3.6.1/lib/test/unit/assertions.rb:54:in `assert_block'
  	from /usr/local/lib/ruby/gems/3.3/gems/test-unit-3.6.1/lib/test/unit/assertions.rb:245:in `assert_equal'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:498:in `block (2 levels) in test_client_ca'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:2140:in `server_connect'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:497:in `block in test_client_ca'
  	from /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:255:in `block (2 levels) in start_server'
/usr/local/lib/ruby/gems/3.3/gems/test-unit-ruby-core-1.0.2/lib/core_assertions.rb:748:in `assert_join_threads'
/usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:277:in `block in start_server'
/usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:203:in `pipe'
/usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:203:in `start_server'
/usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:490:in `test_client_ca'
     487:     end
     488: 
     489:     vflag = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
  => 490:     start_server(verify_mode: vflag, ctx_proc: ctx_proc) { |port|
     491:       ctx = OpenSSL::SSL::SSLContext.new
     492:       client_ca_from_server = nil
     493:       ctx.client_cert_cb = Proc.new do |sslconn|
===============================================================================
Finished in 0.184947548 seconds.
-------------------------------------------------------------------------------
1 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed
-------------------------------------------------------------------------------
5.41 tests/s, 10.81 assertions/s
*** Error 1 in . (Makefile:67 'test_client_ca')
EXPECTED_FAIL

XFAIL	lib/libssl/openssl-ruby	*** Error 1 in . (Makefile:67 'test_client_ca')