START lib/libssl/openssl-ruby 2025-02-09T01:17:35Z ==== 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 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 OPOOOOOOPOOPP/usr/local/share/openssl-ruby-tests/test/openssl/test_bn.rb:349: 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:446:in `test_client_ca' 443: 444: def test_client_ca 445: if ENV['SKIP_EXPECTED_FAILURES'] => 446: pend "skip failing client CA test" 447: end 448: 449: 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:123:in `test_s_parse_include' 120: def test_s_parse_include 121: if !openssl?(1, 1, 1, 2) 122: # OpenSSL < 1.1.1 parses .include directive as a normal assignment => 123: pend ".include directive is not supported" 124: end 125: 126: 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: Only for OpenSSL FIPS [test_new_break_on_fips(OpenSSL::TestPKeyDH)] /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:160:in `omit_on_non_fips' 2) Omission: LibreSSL does 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' 3) Omission: Keylog callback is not supported [test_keylog_cb(OpenSSL::TestSSL)] /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:931:in `test_keylog_cb' 4) Omission: LibreSSL does not support OPENSSL_CONF [test_minmax_version_system_default(OpenSSL::TestSSL)] /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:1381:in `test_minmax_version_system_default' 5) 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:253:in `test_ctx_client_session_cb_tls13' 6) 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:276:in `test_ctx_client_session_cb_tls13_exception' 7) 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' 8) 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' 9) Omission: OpenSSL is not FIPS-capable [test_fips_mode_get_with_fips_mode_set(OpenSSL::TestFIPS)] /usr/local/share/openssl-ruby-tests/test/openssl/test_fips.rb:38:in `test_fips_mode_get_with_fips_mode_set' Finished in 10.738339981 seconds. ------------------------------------------------------------------------------- 573 tests, 4139 assertions, 0 failures, 0 errors, 4 pendings, 9 omissions, 0 notifications 99.2908% passed ------------------------------------------------------------------------------- 53.36 tests/s, 385.44 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: #: /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:227:in `block (3 levels) in start_server' from :187:in `loop' from /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:223: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': <[#]> expected but was (Test::Unit::AssertionFailedError) . 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:462:in `block (2 levels) in test_client_ca' from /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:2032:in `server_connect' from /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:461:in `block in test_client_ca' from /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:256: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:278:in `block in start_server' /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:199:in `pipe' /usr/local/share/openssl-ruby-tests/test/openssl/utils.rb:199:in `start_server' /usr/local/share/openssl-ruby-tests/test/openssl/test_ssl.rb:454:in `test_client_ca' 451: end 452: 453: vflag = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT => 454: start_server(verify_mode: vflag, ctx_proc: ctx_proc) { |port| 455: ctx = OpenSSL::SSL::SSLContext.new 456: client_ca_from_server = nil 457: ctx.client_cert_cb = Proc.new do |sslconn| =============================================================================== Finished in 0.041700014 seconds. ------------------------------------------------------------------------------- 1 tests, 2 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications 0% passed ------------------------------------------------------------------------------- 23.98 tests/s, 47.96 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')