Created
December 27, 2017 23:19
-
-
Save saper/f96b27e3f2fb14ccf4ada382d8d6a6b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Wed Dec 27 23:14:41 2017 | |
Command: env TERM=dump rake test | |
mkdir -p tmp/amd64-freebsd10/openssl/2.4.3 | |
cd tmp/amd64-freebsd10/openssl/2.4.3 | |
/usr/local/bin/ruby24 -I. ../../../../ext/openssl/extconf.rb | |
checking for t_open() in -lnsl... no | |
checking for socket() in -lsocket... no | |
checking for openssl/ssl.h... yes | |
checking for OpenSSL version is 1.0.1 or later... yes | |
checking for RAND_egd()... yes | |
checking for ENGINE_load_builtin_engines() in openssl/engine.h with -Werror=deprecated-declarations... yes | |
checking for ENGINE_load_openbsd_dev_crypto() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_openbsd_dev_crypto in openssl/engine.h... no | |
checking for ENGINE_load_dynamic() in openssl/engine.h with -Werror=deprecated-declarations... yes | |
checking for ENGINE_load_4758cca() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_4758cca in openssl/engine.h... no | |
checking for ENGINE_load_aep() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_aep in openssl/engine.h... no | |
checking for ENGINE_load_atalla() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_atalla in openssl/engine.h... no | |
checking for ENGINE_load_chil() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_chil in openssl/engine.h... no | |
checking for ENGINE_load_cswift() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_cswift in openssl/engine.h... no | |
checking for ENGINE_load_nuron() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_nuron in openssl/engine.h... no | |
checking for ENGINE_load_sureware() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_sureware in openssl/engine.h... no | |
checking for ENGINE_load_ubsec() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_ubsec in openssl/engine.h... no | |
checking for ENGINE_load_padlock() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_padlock in openssl/engine.h... no | |
checking for ENGINE_load_capi() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_capi in openssl/engine.h... no | |
checking for ENGINE_load_gmp() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_gmp in openssl/engine.h... no | |
checking for ENGINE_load_gost() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_gost in openssl/engine.h... no | |
checking for ENGINE_load_cryptodev() in openssl/engine.h with -Werror=deprecated-declarations... yes | |
checking for ENGINE_load_aesni() in openssl/engine.h with -Werror=deprecated-declarations... no | |
checking for ENGINE_load_aesni in openssl/engine.h... no | |
checking for EC_curve_nist2nid()... yes | |
checking for X509_REVOKED_dup()... yes | |
checking for X509_STORE_CTX_get0_store()... yes | |
checking for SSL_CTX_set_alpn_select_cb()... yes | |
checking for SSL_CTX_set1_curves_list() in openssl/ssl.h with -Werror=deprecated-declarations... no | |
checking for SSL_CTX_set1_curves_list in openssl/ssl.h... yes | |
checking for SSL_CTX_set_ecdh_auto() in openssl/ssl.h with -Werror=deprecated-declarations... no | |
checking for SSL_CTX_set_ecdh_auto in openssl/ssl.h... yes | |
checking for SSL_get_server_tmp_key() in openssl/ssl.h with -Werror=deprecated-declarations... no | |
checking for SSL_get_server_tmp_key in openssl/ssl.h... yes | |
checking for SSL_is_server()... yes | |
checking for CRYPTO_lock()... yes | |
checking for SSL.ctx in openssl/ssl.h... yes | |
checking for BN_GENCB_new()... no | |
checking for BN_GENCB_free()... no | |
checking for BN_GENCB_get_arg()... no | |
checking for EVP_MD_CTX_new()... no | |
checking for EVP_MD_CTX_free()... no | |
checking for HMAC_CTX_new()... no | |
checking for HMAC_CTX_free()... no | |
checking for RAND_pseudo_bytes() in openssl/rand.h with -Werror=deprecated-declarations... yes | |
checking for X509_STORE_get_ex_data()... no | |
checking for X509_STORE_set_ex_data()... no | |
checking for X509_CRL_get0_signature()... no | |
checking for X509_REQ_get0_signature()... no | |
checking for X509_REVOKED_get0_serialNumber()... no | |
checking for X509_REVOKED_get0_revocationDate()... no | |
checking for X509_get0_tbs_sigalg()... no | |
checking for X509_STORE_CTX_get0_untrusted()... no | |
checking for X509_STORE_CTX_get0_cert()... no | |
checking for X509_STORE_CTX_get0_chain()... no | |
checking for OCSP_SINGLERESP_get0_id()... no | |
checking for SSL_CTX_get_ciphers()... no | |
checking for X509_up_ref()... no | |
checking for X509_CRL_up_ref()... no | |
checking for X509_STORE_up_ref()... no | |
checking for SSL_SESSION_up_ref()... no | |
checking for EVP_PKEY_up_ref()... no | |
checking for SSL_CTX_set_tmp_ecdh_callback() in openssl/ssl.h with -Werror=deprecated-declarations... yes | |
checking for SSL_CTX_set_min_proto_version() in openssl/ssl.h with -Werror=deprecated-declarations... no | |
checking for SSL_CTX_set_min_proto_version in openssl/ssl.h... no | |
checking for SSL_CTX_get_security_level()... no | |
checking for X509_get0_notBefore()... no | |
checking for SSL_SESSION_get_protocol_version()... no | |
checking for EVP_PBE_scrypt()... no | |
creating extconf.h | |
creating Makefile | |
cd - | |
cd tmp/amd64-freebsd10/openssl/2.4.3 | |
/usr/local/bin/gmake | |
compiling ../../../../ext/openssl/openssl_missing.c | |
compiling ../../../../ext/openssl/ossl.c | |
compiling ../../../../ext/openssl/ossl_asn1.c | |
compiling ../../../../ext/openssl/ossl_bio.c | |
compiling ../../../../ext/openssl/ossl_bn.c | |
compiling ../../../../ext/openssl/ossl_cipher.c | |
compiling ../../../../ext/openssl/ossl_config.c | |
compiling ../../../../ext/openssl/ossl_digest.c | |
compiling ../../../../ext/openssl/ossl_engine.c | |
compiling ../../../../ext/openssl/ossl_hmac.c | |
compiling ../../../../ext/openssl/ossl_kdf.c | |
compiling ../../../../ext/openssl/ossl_ns_spki.c | |
compiling ../../../../ext/openssl/ossl_ocsp.c | |
compiling ../../../../ext/openssl/ossl_pkcs12.c | |
compiling ../../../../ext/openssl/ossl_pkcs7.c | |
compiling ../../../../ext/openssl/ossl_pkey.c | |
compiling ../../../../ext/openssl/ossl_pkey_dh.c | |
../../../../ext/openssl/ossl_pkey_dh.c:265:20: warning: '&&' within '||' [-Wlogical-op-parentheses] | |
if (!pub2 || priv && !priv2) { | |
~~ ~~~~~^~~~~~~~~ | |
../../../../ext/openssl/ossl_pkey_dh.c:265:20: note: place parentheses around the '&&' expression to silence this | |
warning | |
if (!pub2 || priv && !priv2) { | |
^ | |
( ) | |
1 warning generated. | |
compiling ../../../../ext/openssl/ossl_pkey_dsa.c | |
compiling ../../../../ext/openssl/ossl_pkey_ec.c | |
compiling ../../../../ext/openssl/ossl_pkey_rsa.c | |
compiling ../../../../ext/openssl/ossl_rand.c | |
compiling ../../../../ext/openssl/ossl_ssl.c | |
../../../../ext/openssl/ossl_ssl.c:187:14: warning: '&&' within '||' [-Wlogical-op-parentheses] | |
if (min && min > options_map[i].ver || max && max < options_map[i].ver) | |
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ | |
../../../../ext/openssl/ossl_ssl.c:187:14: note: place parentheses around the '&&' expression to silence this warning | |
if (min && min > options_map[i].ver || max && max < options_map[i].ver) | |
^ | |
( ) | |
../../../../ext/openssl/ossl_ssl.c:187:49: warning: '&&' within '||' [-Wlogical-op-parentheses] | |
if (min && min > options_map[i].ver || max && max < options_map[i].ver) | |
~~ ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
../../../../ext/openssl/ossl_ssl.c:187:49: note: place parentheses around the '&&' expression to silence this warning | |
if (min && min > options_map[i].ver || max && max < options_map[i].ver) | |
^ | |
( ) | |
2 warnings generated. | |
compiling ../../../../ext/openssl/ossl_ssl_session.c | |
compiling ../../../../ext/openssl/ossl_x509.c | |
compiling ../../../../ext/openssl/ossl_x509attr.c | |
compiling ../../../../ext/openssl/ossl_x509cert.c | |
compiling ../../../../ext/openssl/ossl_x509crl.c | |
compiling ../../../../ext/openssl/ossl_x509ext.c | |
compiling ../../../../ext/openssl/ossl_x509name.c | |
compiling ../../../../ext/openssl/ossl_x509req.c | |
compiling ../../../../ext/openssl/ossl_x509revoked.c | |
compiling ../../../../ext/openssl/ossl_x509store.c | |
linking shared-object openssl.so | |
cd - | |
mkdir -p tmp/amd64-freebsd10/stage/lib | |
install -c tmp/amd64-freebsd10/openssl/2.4.3/openssl.so lib/openssl.so | |
cp tmp/amd64-freebsd10/openssl/2.4.3/openssl.so tmp/amd64-freebsd10/stage/lib/openssl.so | |
/usr/local/bin/ruby24 -I./lib -ropenssl -ve'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION' | |
ruby 2.4.3p205 (2017-12-14 revision 61247) [amd64-freebsd10] | |
OpenSSL 1.0.2n 7 Dec 2017 | |
OpenSSL 1.0.2n 7 Dec 2017 | |
Stock Ruby module: | |
/usr/local/bin/ruby24 -ropenssl -ve'puts OpenSSL::OPENSSL_VERSION, OpenSSL::OPENSSL_LIBRARY_VERSION' | |
ruby 2.4.3p205 (2017-12-14 revision 61247) [amd64-freebsd10] | |
OpenSSL 1.0.1s-freebsd 1 Mar 2016 | |
OpenSSL 1.0.1u-freebsd 22 Sep 2016 | |
Loaded suite /usr/local/lib/ruby/gems/2.4/gems/rake-12.3.0/lib/rake/rake_test_loader | |
Started | |
...................................................................................................................... | |
...................................................................................................................... | |
..........P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:135:in `test_hkdf_rfc5869_test_case_1' | |
132: end | |
133: | |
134: def test_hkdf_rfc5869_test_case_1 | |
=> 135: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
136: hash = "sha256" | |
137: ikm = B("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b") | |
138: salt = B("000102030405060708090a0b0c") | |
Pending: test_hkdf_rfc5869_test_case_1(OpenSSL::TestKDF): HKDF is not implemented | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:149:in `test_hkdf_rfc5869_test_case_3' | |
146: end | |
147: | |
148: def test_hkdf_rfc5869_test_case_3 | |
=> 149: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
150: hash = "sha256" | |
151: ikm = B("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b") | |
152: salt = B("") | |
Pending: test_hkdf_rfc5869_test_case_3(OpenSSL::TestKDF): HKDF is not implemented | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:163:in `test_hkdf_rfc5869_test_case_4' | |
160: end | |
161: | |
162: def test_hkdf_rfc5869_test_case_4 | |
=> 163: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
164: hash = "sha1" | |
165: ikm = B("0b0b0b0b0b0b0b0b0b0b0b") | |
166: salt = B("000102030405060708090a0b0c") | |
Pending: test_hkdf_rfc5869_test_case_4(OpenSSL::TestKDF): HKDF is not implemented | |
====================================================================================================================== | |
.......P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/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 | |
Pending: test_scrypt_rfc7914_first(OpenSSL::TestKDF): scrypt is not implemented | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/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 | |
Pending: test_scrypt_rfc7914_second(OpenSSL::TestKDF): scrypt is not implemented | |
====================================================================================================================== | |
...................................................................................................................... | |
................................ | |
Finished in 12.699994017 seconds. | |
---------------------------------------------------------------------------------------------------------------------- | |
408 tests, 3853 assertions, 0 failures, 0 errors, 5 pendings, 0 omissions, 0 notifications | |
98.7745% passed | |
---------------------------------------------------------------------------------------------------------------------- | |
32.13 tests/s, 303.39 assertions/s | |
Loaded suite /usr/local/lib/ruby/gems/2.4/gems/rake-12.3.0/lib/rake/rake_test_loader | |
Started | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:124:in `test_ECPrivateKey' | |
121: OpenSSL::ASN1::Integer(1), | |
122: OpenSSL::ASN1::OctetString(p256.private_key.to_s(2)), | |
123: OpenSSL::ASN1::ObjectId("prime256v1", 0, :EXPLICIT), | |
=> 124: OpenSSL::ASN1::BitString(p256.public_key.to_octet_string(:uncompressed), | |
125: 1, :EXPLICIT) | |
126: ]) | |
127: key = OpenSSL::PKey::EC.new(asn1.to_der) | |
Error: test_ECPrivateKey(OpenSSL::TestEC): NoMethodError: undefined method `to_octet_string' for #<OpenSSL::PKey::EC::Point:0x000000080316d9a0> | |
====================================================================================================================== | |
.E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:179:in `test_PUBKEY' | |
176: OpenSSL::ASN1::ObjectId("prime256v1") | |
177: ]), | |
178: OpenSSL::ASN1::BitString( | |
=> 179: p256.public_key.to_octet_string(:uncompressed) | |
180: ) | |
181: ]) | |
182: key = OpenSSL::PKey::EC.new(asn1.to_der) | |
Error: test_PUBKEY(OpenSSL::TestEC): NoMethodError: undefined method `to_octet_string' for #<OpenSSL::PKey::EC::Point:0x000000080396baa8> | |
====================================================================================================================== | |
....E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:222:in `test_ec_group' | |
219: assert_equal :uncompressed, group4.point_conversion_form | |
220: assert_equal group1, group4 | |
221: assert_equal group1.curve_name, group4.curve_name | |
=> 222: assert_equal group1.generator.to_octet_string(:uncompressed), | |
223: group4.generator.to_octet_string(:uncompressed) | |
224: assert_equal group1.order, group4.order | |
225: assert_equal group1.cofactor, group4.cofactor | |
Error: test_ec_group(OpenSSL::TestEC): NoMethodError: undefined method `to_octet_string' for #<OpenSSL::PKey::EC::Point:0x0000000804e6ce98> | |
====================================================================================================================== | |
.E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:238:in `test_ec_point' | |
235: point2 = OpenSSL::PKey::EC::Point.new(group, point.to_bn) | |
236: assert_equal point, point2 | |
237: assert_equal point.to_bn, point2.to_bn | |
=> 238: assert_equal point.to_octet_string(:uncompressed), | |
239: point2.to_octet_string(:uncompressed) | |
240: | |
241: point3 = OpenSSL::PKey::EC::Point.new(group, | |
Error: test_ec_point(OpenSSL::TestEC): NoMethodError: undefined method `to_octet_string' for #<OpenSSL::PKey::EC::Point:0x00000008033512a8> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:298:in `test_ec_point_mul' | |
295: # generator is (5, 1) | |
296: group = OpenSSL::PKey::EC::Group.new(:GFp, 17, 2, 2) | |
297: group.point_conversion_form = :uncompressed | |
=> 298: gen = OpenSSL::PKey::EC::Point.new(group, B(%w{ 04 05 01 })) | |
299: group.set_generator(gen, 19, 1) | |
300: | |
301: # 3 * (6, 3) = (16, 13) | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:298:in `new' | |
/home/saper/sw/ruby-openssl/test/test_pkey_ec.rb:298:in `initialize' | |
Error: test_ec_point_mul(OpenSSL::TestEC): TypeError: no implicit conversion of OpenSSL::PKey::EC::Group into String | |
====================================================================================================================== | |
..................................E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pkey_rsa.rb:121:in `test_sign_verify_pss' | |
118: data = "Sign me!" | |
119: invalid_data = "Sign me?" | |
120: | |
=> 121: signature = key.sign_pss("SHA256", data, salt_length: 20, mgf1_hash: "SHA1") | |
122: assert_equal 128, signature.bytesize | |
123: assert_equal true, | |
124: key.verify_pss("SHA256", signature, data, salt_length: 20, mgf1_hash: "SHA1") | |
Error: test_sign_verify_pss(OpenSSL::TestPKeyRSA): NoMethodError: undefined method `sign_pss' for #<OpenSSL::PKey::RSA:0x0000000803b27b58> | |
====================================================================================================================== | |
.E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:63:in `test_add_certificate' | |
60: ctx.cert = ctx.key = ctx.extra_chain_cert = nil | |
61: ctx.add_certificate(@svr_cert, @svr_key, [@ca_cert]) # RSA | |
62: } | |
=> 63: start_server(ctx_proc: ctx_proc) do |port| | |
64: server_connect(port) { |ssl| | |
65: assert_equal @svr_cert.subject, ssl.peer_cert.subject | |
66: assert_equal [@svr_cert.subject, @ca_cert.subject], | |
/home/saper/sw/ruby-openssl/test/utils.rb:195:in `start_server' | |
/home/saper/sw/ruby-openssl/test/utils.rb:195:in `pipe' | |
/home/saper/sw/ruby-openssl/test/utils.rb:205:in `block in start_server' | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:61:in `block in test_add_certificate' | |
Error: test_add_certificate(OpenSSL::TestSSL): NoMethodError: undefined method `add_certificate' for #<OpenSSL::SSL::SSLContext:0x00000008038e4440> | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:74:in `test_add_certificate_multiple_certs' | |
71: | |
72: def test_add_certificate_multiple_certs | |
73: pend "EC is not supported" unless defined?(OpenSSL::PKey::EC) | |
=> 74: pend "TLS 1.2 is not supported" unless tls12_supported? | |
75: | |
76: # SSL_CTX_set0_chain() is needed for setting multiple certificate chains | |
77: add0_chain_supported = openssl?(1, 0, 2) | |
Pending: test_add_certificate_multiple_certs(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
.....F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:821:in `test_connect_certificate_verify_failed_exception_message' | |
818: end | |
819: | |
820: def test_connect_certificate_verify_failed_exception_message | |
=> 821: start_server(ignore_listener_error: true) { |port| | |
822: ctx = OpenSSL::SSL::SSLContext.new | |
823: ctx.set_params | |
824: assert_raise_with_message(OpenSSL::SSL::SSLError, /self signed/) { | |
/home/saper/sw/ruby-openssl/test/utils.rb:195:in `start_server' | |
/home/saper/sw/ruby-openssl/test/utils.rb:195:in `pipe' | |
/home/saper/sw/ruby-openssl/test/utils.rb:268:in `block in start_server' | |
/home/saper/sw/ruby-openssl/test/envutil.rb:281:in `assert_join_threads' | |
Failure: test_connect_certificate_verify_failed_exception_message(OpenSSL::TestSSL): | |
exceptions on 1 threads: | |
#<Thread:0x0000000804f042c0@/home/saper/sw/ruby-openssl/test/utils.rb:244 dead>: | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:55:in `block in assert_block': Expected Exception(OpenSSL::SSL::SSLError) was raised, but the message doesn't match. | |
Expected /self signed/ to match "SSL_connect returned=1 errno=0 state=error: certificate verify failed". | |
<nil> is not true. (Test::Unit::AssertionFailedError) | |
from /usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:1631:in `_wrap_assertion' | |
from /usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:53:in `assert_block' | |
from /usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:163:in `block in assert' | |
from /usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:1636:in `_wrap_assertion' | |
from /usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/assertions.rb:130:in `assert' | |
from /home/saper/sw/ruby-openssl/test/envutil.rb:332:in `assert_raise_with_message' | |
from /home/saper/sw/ruby-openssl/test/test_ssl.rb:824:in `block in test_connect_certificate_verify_failed_exception_message' | |
from /home/saper/sw/ruby-openssl/test/utils.rb:246:in `block (2 levels) in start_server' | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1381:in `test_connect_works_when_setting_dh_callback_to_nil' | |
1378: end | |
1379: | |
1380: def test_connect_works_when_setting_dh_callback_to_nil | |
=> 1381: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1382: | |
1383: ctx_proc = -> ctx { | |
1384: ctx.ssl_version = :TLSv1_2 | |
Pending: test_connect_works_when_setting_dh_callback_to_nil(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
..P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1359:in `test_dh_callback' | |
1356: end | |
1357: | |
1358: def test_dh_callback | |
=> 1359: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1360: | |
1361: called = false | |
1362: ctx_proc = -> ctx { | |
Pending: test_dh_callback(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
...P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1307:in `test_fallback_scsv' | |
1304: end | |
1305: | |
1306: def test_fallback_scsv | |
=> 1307: pend "Fallback SCSV is not supported" unless \ | |
1308: OpenSSL::SSL::SSLContext.method_defined?(:enable_fallback_scsv) | |
1309: | |
1310: start_server do |port| | |
Pending: test_fallback_scsv(OpenSSL::TestSSL): Fallback SCSV is not supported | |
====================================================================================================================== | |
.P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1256:in `test_get_ephemeral_key' | |
1253: def test_get_ephemeral_key | |
1254: # OpenSSL >= 1.0.2 | |
1255: unless OpenSSL::SSL::SSLSocket.method_defined?(:tmp_key) | |
=> 1256: pend "SSL_get_server_tmp_key() is not supported" | |
1257: end | |
1258: | |
1259: if tls12_supported? | |
Pending: test_get_ephemeral_key(OpenSSL::TestSSL): SSL_get_server_tmp_key() is not supported | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:914:in `test_minmax_version' | |
911: end | |
912: | |
913: def test_minmax_version | |
=> 914: supported = check_supported_protocol_versions | |
915: | |
916: # name: The string that would be returned by SSL_get_version() | |
917: # method: The version-specific method name (if any) | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:861:in `check_supported_protocol_versions' | |
Error: test_minmax_version(OpenSSL::TestSSL): NameError: uninitialized constant OpenSSL::SSL::SSL3_VERSION | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1201:in `test_npn_advertised_protocol_too_long' | |
1198: end | |
1199: | |
1200: def test_npn_advertised_protocol_too_long | |
=> 1201: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1202: pend "NPN is not supported" unless \ | |
1203: OpenSSL::SSL::SSLContext.method_defined?(:npn_select_cb) | |
1204: pend "LibreSSL 2.6 has broken NPN functions" if libressl?(2, 6, 1) | |
Pending: test_npn_advertised_protocol_too_long(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1141:in `test_npn_protocol_selection_ary' | |
1138: end | |
1139: | |
1140: def test_npn_protocol_selection_ary | |
=> 1141: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1142: pend "NPN is not supported" unless \ | |
1143: OpenSSL::SSL::SSLContext.method_defined?(:npn_select_cb) | |
1144: pend "LibreSSL 2.6 has broken NPN functions" if libressl?(2, 6, 1) | |
Pending: test_npn_protocol_selection_ary(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1187:in `test_npn_protocol_selection_cancel' | |
1184: end | |
1185: | |
1186: def test_npn_protocol_selection_cancel | |
=> 1187: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1188: pend "NPN is not supported" unless \ | |
1189: OpenSSL::SSL::SSLContext.method_defined?(:npn_select_cb) | |
1190: pend "LibreSSL 2.6 has broken NPN functions" if libressl?(2, 6, 1) | |
Pending: test_npn_protocol_selection_cancel(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1162:in `test_npn_protocol_selection_enum' | |
1159: end | |
1160: | |
1161: def test_npn_protocol_selection_enum | |
=> 1162: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1163: pend "NPN is not supported" unless \ | |
1164: OpenSSL::SSL::SSLContext.method_defined?(:npn_select_cb) | |
1165: pend "LibreSSL 2.6 has broken NPN functions" if libressl?(2, 6, 1) | |
Pending: test_npn_protocol_selection_enum(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1215:in `test_npn_selected_protocol_too_long' | |
1212: end | |
1213: | |
1214: def test_npn_selected_protocol_too_long | |
=> 1215: pend "TLS 1.2 is not supported" unless tls12_supported? | |
1216: pend "NPN is not supported" unless \ | |
1217: OpenSSL::SSL::SSLContext.method_defined?(:npn_select_cb) | |
1218: pend "LibreSSL 2.6 has broken NPN functions" if libressl?(2, 6, 1) | |
Pending: test_npn_selected_protocol_too_long(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:1030:in `test_options_disable_versions' | |
1027: | |
1028: def test_options_disable_versions | |
1029: # Note: Use of these OP_* flags has been deprecated since OpenSSL 1.1.0. | |
=> 1030: supported = check_supported_protocol_versions | |
1031: | |
1032: if supported.include?(OpenSSL::SSL::TLS1_1_VERSION) && | |
1033: supported.include?(OpenSSL::SSL::TLS1_2_VERSION) | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:861:in `check_supported_protocol_versions' | |
Error: test_options_disable_versions(OpenSSL::TestSSL): NameError: uninitialized constant OpenSSL::SSL::SSL3_VERSION | |
====================================================================================================================== | |
.P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:432:in `test_post_connect_check_with_anon_ciphers' | |
429: end | |
430: | |
431: def test_post_connect_check_with_anon_ciphers | |
=> 432: pend "TLS 1.2 is not supported" unless tls12_supported? | |
433: | |
434: ctx_proc = -> ctx { | |
435: ctx.ssl_version = :TLSv1_2 | |
Pending: test_post_connect_check_with_anon_ciphers(OpenSSL::TestSSL): TLS 1.2 is not supported | |
====================================================================================================================== | |
.......E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:896:in `test_set_params_min_version' | |
893: end | |
894: | |
895: def test_set_params_min_version | |
=> 896: supported = check_supported_protocol_versions | |
897: store = OpenSSL::X509::Store.new | |
898: store.add_cert(@ca_cert) | |
899: | |
/home/saper/sw/ruby-openssl/test/test_ssl.rb:861:in `check_supported_protocol_versions' | |
Error: test_set_params_min_version(OpenSSL::TestSSL): NameError: uninitialized constant OpenSSL::SSL::SSL3_VERSION | |
====================================================================================================================== | |
...............P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl_session.rb:223:in `test_ctx_client_session_cb' | |
220: TEST_SESSION_REMOVE_CB = ENV["OSSL_TEST_ALL"] == "1" | |
221: | |
222: def test_ctx_client_session_cb | |
=> 223: pend "TLS 1.2 is not supported" unless tls12_supported? | |
224: | |
225: ctx_proc = proc { |ctx| ctx.ssl_version = :TLSv1_2 } | |
226: start_server(ctx_proc: ctx_proc) do |port| | |
Pending: test_ctx_client_session_cb(OpenSSL::TestSSLSession): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl_session.rb:256:in `test_ctx_server_session_cb' | |
253: end | |
254: | |
255: def test_ctx_server_session_cb | |
=> 256: pend "TLS 1.2 is not supported" unless tls12_supported? | |
257: | |
258: connections = nil | |
259: called = {} | |
Pending: test_ctx_server_session_cb(OpenSSL::TestSSLSession): TLS 1.2 is not supported | |
====================================================================================================================== | |
..P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl_session.rb:145:in `test_server_session_cache' | |
142: end | |
143: | |
144: def test_server_session_cache | |
=> 145: pend "TLS 1.2 is not supported" unless tls12_supported? | |
146: | |
147: ctx_proc = Proc.new do |ctx| | |
148: ctx.ssl_version = :TLSv1_2 | |
Pending: test_server_session_cache(OpenSSL::TestSSLSession): TLS 1.2 is not supported | |
====================================================================================================================== | |
P | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ssl_session.rb:8:in `test_session' | |
5: | |
6: class OpenSSL::TestSSLSession < OpenSSL::SSLTestCase | |
7: def test_session | |
=> 8: pend "TLS 1.2 is not supported" unless tls12_supported? | |
9: | |
10: ctx_proc = proc { |ctx| ctx.ssl_version = :TLSv1_2 } | |
11: start_server(ctx_proc: ctx_proc) do |port| | |
Pending: test_session(OpenSSL::TestSSLSession): TLS 1.2 is not supported | |
====================================================================================================================== | |
...E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:435:in `test_basic_asn1data' | |
432: def test_basic_asn1data | |
433: encode_test B(%w{ 00 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 0, :UNIVERSAL) | |
434: encode_test B(%w{ 01 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 1, :UNIVERSAL) | |
=> 435: encode_decode_test B(%w{ 41 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 1, :APPLICATION) | |
436: encode_decode_test B(%w{ 81 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 1, :CONTEXT_SPECIFIC) | |
437: encode_decode_test B(%w{ C1 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 1, :PRIVATE) | |
438: encode_decode_test B(%w{ 1F 20 00 }), OpenSSL::ASN1::ASN1Data.new(B(%w{}), 32, :UNIVERSAL) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_basic_asn1data(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::ASN1Data:0x0000000804daac80> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:472:in `test_basic_constructed' | |
469: | |
470: def test_basic_constructed | |
471: octet_string = OpenSSL::ASN1::OctetString.new(B(%w{ AB CD })) | |
=> 472: encode_test B(%w{ 20 00 }), OpenSSL::ASN1::Constructive.new([], 0) | |
473: encode_test B(%w{ 21 00 }), OpenSSL::ASN1::Constructive.new([], 1, nil, :UNIVERSAL) | |
474: encode_test B(%w{ A1 00 }), OpenSSL::ASN1::Constructive.new([], 1, nil, :CONTEXT_SPECIFIC) | |
475: encode_test B(%w{ 21 04 04 02 AB CD }), OpenSSL::ASN1::Constructive.new([octet_string], 1) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `encode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `to_der' | |
Error: test_basic_constructed(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: Constructive shall only be used with infinite length | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:459:in `test_basic_primitive' | |
456: end | |
457: | |
458: def test_basic_primitive | |
=> 459: encode_test B(%w{ 00 00 }), OpenSSL::ASN1::Primitive.new(B(%w{}), 0) | |
460: encode_test B(%w{ 01 00 }), OpenSSL::ASN1::Primitive.new(B(%w{}), 1, nil, :UNIVERSAL) | |
461: encode_test B(%w{ 81 00 }), OpenSSL::ASN1::Primitive.new(B(%w{}), 1, nil, :CONTEXT_SPECIFIC) | |
462: encode_test B(%w{ 01 02 AB CD }), OpenSSL::ASN1::Primitive.new(B(%w{ AB CD }), 1) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `encode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `to_der' | |
Error: test_basic_primitive(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: universal tag for OpenSSL::ASN1::Primitive not found | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:260:in `test_bitstring' | |
257: end | |
258: | |
259: def test_bitstring | |
=> 260: encode_decode_test B(%w{ 03 01 00 }), OpenSSL::ASN1::BitString.new(B(%w{})) | |
261: encode_decode_test B(%w{ 03 02 00 01 }), OpenSSL::ASN1::BitString.new(B(%w{ 01 })) | |
262: obj = OpenSSL::ASN1::BitString.new(B(%w{ F0 })) | |
263: obj.unused_bits = 4 | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_bitstring(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::BitString:0x0000000803bb4260> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:226:in `test_boolean' | |
223: end | |
224: | |
225: def test_boolean | |
=> 226: encode_decode_test B(%w{ 01 01 00 }), OpenSSL::ASN1::Boolean.new(false) | |
227: encode_decode_test B(%w{ 01 01 FF }), OpenSSL::ASN1::Boolean.new(true) | |
228: decode_test B(%w{ 01 01 01 }), OpenSSL::ASN1::Boolean.new(true) | |
229: assert_raise(OpenSSL::ASN1::ASN1Error) { | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_boolean(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Boolean:0x0000000803b2b550> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:525:in `test_cons_explicit_tagging' | |
522: content3 = [ OpenSSL::ASN1::PrintableString.new('abc'), | |
523: OpenSSL::ASN1::EndOfContent.new() ] | |
524: seq3 = OpenSSL::ASN1::Sequence.new(content3, 2, :EXPLICIT) | |
=> 525: seq3.indefinite_length = true | |
526: encode_test B(%w{ A2 80 30 80 13 03 61 62 63 00 00 00 00 }), seq3 | |
527: end | |
528: | |
Error: test_cons_explicit_tagging(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length=' for #<OpenSSL::ASN1::Sequence:0x0000000803911e40> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:539:in `test_cons_implicit_tagging' | |
536: content3 = [ OpenSSL::ASN1::Null.new(nil), | |
537: OpenSSL::ASN1::EndOfContent.new() ] | |
538: seq3 = OpenSSL::ASN1::Sequence.new(content3, 1, :IMPLICIT) | |
=> 539: seq3.indefinite_length = true | |
540: encode_test B(%w{ A1 80 05 00 00 00 }), seq3 | |
541: | |
542: # Special behavior: Encoding universal types with non-default 'tag' | |
Error: test_cons_implicit_tagging(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length=' for #<OpenSSL::ASN1::Sequence:0x0000000803351f50> | |
====================================================================================================================== | |
....E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:219:in `test_end_of_content' | |
216: end | |
217: | |
218: def test_end_of_content | |
=> 219: encode_decode_test B(%w{ 00 00 }), OpenSSL::ASN1::EndOfContent.new | |
220: assert_raise(OpenSSL::ASN1::ASN1Error) { | |
221: OpenSSL::ASN1.decode(B(%w{ 00 01 00 })) | |
222: } | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_end_of_content(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::EndOfContent:0x0000000804e5dee8> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:253:in `test_enumerated' | |
250: end | |
251: | |
252: def test_enumerated | |
=> 253: encode_decode_test B(%w{ 0A 01 00 }), OpenSSL::ASN1::Enumerated.new(0) | |
254: encode_decode_test B(%w{ 0A 01 48 }), OpenSSL::ASN1::Enumerated.new(72) | |
255: encode_decode_test B(%w{ 0A 02 00 80 }), OpenSSL::ASN1::Enumerated.new(128) | |
256: encode_decode_test B(%w{ 0A 09 01 00 00 00 00 00 00 00 00 }), OpenSSL::ASN1::Enumerated.new(2 ** 64) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_enumerated(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Enumerated:0x0000000804dc94f0> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:406:in `test_generalizedtime' | |
403: end | |
404: | |
405: def test_generalizedtime | |
=> 406: encode_decode_test B(%w{ 18 0F }) + "20161208193429Z".b, | |
407: OpenSSL::ASN1::GeneralizedTime.new(Time.utc(2016, 12, 8, 19, 34, 29)) | |
408: encode_decode_test B(%w{ 18 0F }) + "99990908234339Z".b, | |
409: OpenSSL::ASN1::GeneralizedTime.new(Time.utc(9999, 9, 8, 23, 43, 39)) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_generalizedtime(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::GeneralizedTime:0x0000000804d6b878> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:235:in `test_integer' | |
232: end | |
233: | |
234: def test_integer | |
=> 235: encode_decode_test B(%w{ 02 01 00 }), OpenSSL::ASN1::Integer.new(0) | |
236: encode_decode_test B(%w{ 02 01 48 }), OpenSSL::ASN1::Integer.new(72) | |
237: encode_decode_test B(%w{ 02 02 00 80 }), OpenSSL::ASN1::Integer.new(128) | |
238: encode_decode_test B(%w{ 02 01 81 }), OpenSSL::ASN1::Integer.new(-127) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_integer(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Integer:0x0000000803be9690> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:303:in `test_null' | |
300: end | |
301: | |
302: def test_null | |
=> 303: encode_decode_test B(%w{ 05 00 }), OpenSSL::ASN1::Null.new(nil) | |
304: assert_raise(OpenSSL::ASN1::ASN1Error) { | |
305: OpenSSL::ASN1.decode(B(%w{ 05 01 00 })) | |
306: } | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_null(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Null:0x0000000803ba2858> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:214:in `test_object_id_register' | |
211: assert_equal oid, obj.oid | |
212: assert_equal "ossl-test-sn", obj.sn | |
213: assert_equal "ossl-test-ln", obj.ln | |
=> 214: obj = encode_decode_test B(%w{ 06 05 2A 22 83 BB 55 }), OpenSSL::ASN1::ObjectId("ossl-test-ln") | |
215: assert_equal "ossl-test-sn", obj.value | |
216: end | |
217: | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_object_id_register(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::ObjectId:0x0000000803b250d8> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:310:in `test_object_identifier' | |
307: end | |
308: | |
309: def test_object_identifier | |
=> 310: encode_decode_test B(%w{ 06 01 00 }), OpenSSL::ASN1::ObjectId.new("0.0".b) | |
311: encode_decode_test B(%w{ 06 01 28 }), OpenSSL::ASN1::ObjectId.new("1.0".b) | |
312: encode_decode_test B(%w{ 06 03 88 37 03 }), OpenSSL::ASN1::ObjectId.new("2.999.3".b) | |
313: encode_decode_test B(%w{ 06 05 2A 22 83 BB 55 }), OpenSSL::ASN1::ObjectId.new("1.2.34.56789".b) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_object_identifier(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::ObjectId:0x00000008038e9670> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:551:in `test_octet_string_constructed_tagging' | |
548: def test_octet_string_constructed_tagging | |
549: octets = [ OpenSSL::ASN1::OctetString.new('aaa') ] | |
550: cons = OpenSSL::ASN1::Constructive.new(octets, 0, :IMPLICIT) | |
=> 551: encode_test B(%w{ A0 05 04 03 61 61 61 }), cons | |
552: | |
553: octets = [ OpenSSL::ASN1::OctetString.new('aaa'), | |
554: OpenSSL::ASN1::EndOfContent.new() ] | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `encode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `to_der' | |
Error: test_octet_string_constructed_tagging(OpenSSL::TestASN1): OpenSSL::ASN1::ASN1Error: Constructive shall only be used with infinite length | |
====================================================================================================================== | |
.F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:512:in `test_prim_implicit_tagging' | |
509: # Special behavior: Encoding universal types with non-default 'tag' | |
510: # attribute and nil tagging method. | |
511: int3 = OpenSSL::ASN1::Integer.new(1, 1) | |
=> 512: encode_test B(%w{ 01 01 01 }), int3 | |
513: end | |
514: | |
515: def test_cons_explicit_tagging | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:666:in `encode_test' | |
<"\x01\x01\x01"> expected but was | |
<"\x02\x01\x01"> | |
diff: | |
? | |
Failure: test_prim_implicit_tagging(OpenSSL::TestASN1) | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:566:in `test_recursive_octet_string_indefinite_length' | |
563: octets_sub2 = [ OpenSSL::ASN1::OctetString.new("\x02"), | |
564: OpenSSL::ASN1::EndOfContent.new() ] | |
565: container1 = OpenSSL::ASN1::Constructive.new(octets_sub1, OpenSSL::ASN1::OCTET_STRING, nil, :UNIVERSAL) | |
=> 566: container1.indefinite_length = true | |
567: container2 = OpenSSL::ASN1::Constructive.new(octets_sub2, OpenSSL::ASN1::OCTET_STRING, nil, :UNIVERSAL) | |
568: container2.indefinite_length = true | |
569: octets3 = OpenSSL::ASN1::OctetString.new("\x03") | |
Error: test_recursive_octet_string_indefinite_length(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length=' for #<OpenSSL::ASN1::Constructive:0x0000000804f13c70> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:585:in `test_recursive_octet_string_parse' | |
582: asn1 = OpenSSL::ASN1.decode(raw) | |
583: assert_equal(OpenSSL::ASN1::Constructive, asn1.class) | |
584: assert_universal(OpenSSL::ASN1::OCTET_STRING, asn1) | |
=> 585: assert_equal(true, asn1.indefinite_length) | |
586: assert_equal(3, asn1.value.size) | |
587: nested1 = asn1.value[0] | |
588: assert_equal(OpenSSL::ASN1::Constructive, nested1.class) | |
Error: test_recursive_octet_string_parse(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Constructive:0x0000000804eaf1d0> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:338:in `test_sequence' | |
335: end | |
336: | |
337: def test_sequence | |
=> 338: encode_decode_test B(%w{ 30 00 }), OpenSSL::ASN1::Sequence.new([]) | |
339: encode_decode_test B(%w{ 30 07 05 00 30 00 04 01 00 }), OpenSSL::ASN1::Sequence.new([ | |
340: OpenSSL::ASN1::Null.new(nil), | |
341: OpenSSL::ASN1::Sequence.new([]), | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_sequence(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Sequence:0x0000000803986c68> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:368:in `test_set' | |
365: end | |
366: | |
367: def test_set | |
=> 368: encode_decode_test B(%w{ 31 00 }), OpenSSL::ASN1::Set.new([]) | |
369: encode_decode_test B(%w{ 31 07 05 00 30 00 04 01 00 }), OpenSSL::ASN1::Set.new([ | |
370: OpenSSL::ASN1::Null.new(nil), | |
371: OpenSSL::ASN1::Sequence.new([]), | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_set(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::Set:0x0000000804da9790> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:288:in `test_string_basic' | |
285: encode_decode_test tag.chr + B(%w{ 00 }), klass.new(B(%w{})) | |
286: encode_decode_test tag.chr + B(%w{ 02 00 01 }), klass.new(B(%w{ 00 01 })) | |
287: } | |
=> 288: test.(4, OpenSSL::ASN1::OctetString) | |
289: test.(12, OpenSSL::ASN1::UTF8String) | |
290: test.(18, OpenSSL::ASN1::NumericString) | |
291: test.(19, OpenSSL::ASN1::PrintableString) | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:285:in `block in test_string_basic' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_string_basic(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::OctetString:0x0000000804c304e0> | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:380:in `test_utctime' | |
377: end | |
378: | |
379: def test_utctime | |
=> 380: encode_decode_test B(%w{ 17 0D }) + "160908234339Z".b, | |
381: OpenSSL::ASN1::UTCTime.new(Time.utc(2016, 9, 8, 23, 43, 39)) | |
382: # Seconds is omitted | |
383: decode_test B(%w{ 17 0B }) + "1609082343Z".b, | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:677:in `encode_decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:671:in `decode_test' | |
/home/saper/sw/ruby-openssl/test/test_asn1.rb:648:in `assert_asn1_equal' | |
Error: test_utctime(OpenSSL::TestASN1): NoMethodError: undefined method `indefinite_length' for #<OpenSSL::ASN1::UTCTime:0x0000000803bc5588> | |
====================================================================================================================== | |
.............E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_bn.rb:103:in `test_negative_p' | |
100: end | |
101: | |
102: def test_negative_p | |
=> 103: assert_equal(false, 0.to_bn.negative?) | |
104: assert_equal(false, @e1.negative?) | |
105: assert_equal(true, @e2.negative?) | |
106: end | |
Error: test_negative_p(OpenSSL::TestBN): NoMethodError: undefined method `negative?' for #<OpenSSL::BN:0x0000000803197840> | |
====================================================================================================================== | |
.........E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_bn.rb:126:in `test_unary_plus_minus' | |
123: end | |
124: | |
125: def test_unary_plus_minus | |
=> 126: assert_equal(999, +@e1) | |
127: assert_equal(-999, +@e2) | |
128: assert_equal(-999, -@e1) | |
129: assert_equal(+999, -@e2) | |
Error: test_unary_plus_minus(OpenSSL::TestBN): NoMethodError: undefined method `+@' for #<OpenSSL::BN:0x0000000804ee0af0> | |
====================================================================================================================== | |
.....................................................................E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:135:in `test_hkdf_rfc5869_test_case_1' | |
132: end | |
133: | |
134: def test_hkdf_rfc5869_test_case_1 | |
=> 135: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
136: hash = "sha256" | |
137: ikm = B("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b") | |
138: salt = B("000102030405060708090a0b0c") | |
Error: test_hkdf_rfc5869_test_case_1(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:149:in `test_hkdf_rfc5869_test_case_3' | |
146: end | |
147: | |
148: def test_hkdf_rfc5869_test_case_3 | |
=> 149: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
150: hash = "sha256" | |
151: ikm = B("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b") | |
152: salt = B("") | |
Error: test_hkdf_rfc5869_test_case_3(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:163:in `test_hkdf_rfc5869_test_case_4' | |
160: end | |
161: | |
162: def test_hkdf_rfc5869_test_case_4 | |
=> 163: pend "HKDF is not implemented" unless OpenSSL::KDF.respond_to?(:hkdf) # OpenSSL >= 1.1.0 | |
164: hash = "sha1" | |
165: ikm = B("0b0b0b0b0b0b0b0b0b0b0b") | |
166: salt = B("000102030405060708090a0b0c") | |
Error: test_hkdf_rfc5869_test_case_4(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:22:in `test_pbkdf2_hmac_sha1_rfc6070_c_1_len_20' | |
19: f3 a9 b5 24 af 60 12 06 | |
20: 2f e0 37 a6 } | |
21: expected = [raw.join('')].pack('H*') | |
=> 22: value = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha1") | |
23: assert_equal(expected, value) | |
24: end | |
25: | |
Error: test_pbkdf2_hmac_sha1_rfc6070_c_1_len_20(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:35:in `test_pbkdf2_hmac_sha1_rfc6070_c_2_len_20' | |
32: cd 1e d9 2a ce 1d 41 f0 | |
33: d8 de 89 57 } | |
34: expected = [raw.join('')].pack('H*') | |
=> 35: value = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha1") | |
36: assert_equal(expected, value) | |
37: end | |
38: | |
Error: test_pbkdf2_hmac_sha1_rfc6070_c_2_len_20(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:89:in `test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_16' | |
86: raw = %w{ 56 fa 6a a7 55 48 09 9d | |
87: cc 37 d7 f0 34 25 e0 c3 } | |
88: expected = [raw.join('')].pack('H*') | |
=> 89: value = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha1") | |
90: assert_equal(expected, value) | |
91: end | |
92: | |
Error: test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_16(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:48:in `test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_20' | |
45: be ad 49 d9 26 f7 21 d0 | |
46: 65 a4 29 c1 } | |
47: expected = [raw.join('')].pack('H*') | |
=> 48: value = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha1") | |
49: assert_equal(expected, value) | |
50: end | |
51: | |
Error: test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_20(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:77:in `test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_25' | |
74: 8b 29 1a 96 4c f2 f0 70 | |
75: 38 } | |
76: expected = [raw.join('')].pack('H*') | |
=> 77: value = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha1") | |
78: assert_equal(expected, value) | |
79: end | |
80: | |
Error: test_pbkdf2_hmac_sha1_rfc6070_c_4096_len_25(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:99:in `test_pbkdf2_hmac_sha256_c_20000_len_32' | |
96: s = OpenSSL::Random.random_bytes(16) | |
97: c = 20000 | |
98: dk_len = 32 | |
=> 99: value1 = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha256") | |
100: value2 = OpenSSL::KDF.pbkdf2_hmac(p, salt: s, iterations: c, length: dk_len, hash: "sha256") | |
101: assert_equal(value1, value2) | |
102: end | |
Error: test_pbkdf2_hmac_sha256_c_20000_len_32(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_kdf.rb:8:in `test_pkcs5_pbkdf2_hmac_compatibility' | |
5: | |
6: class OpenSSL::TestKDF < OpenSSL::TestCase | |
7: def test_pkcs5_pbkdf2_hmac_compatibility | |
=> 8: expected = OpenSSL::KDF.pbkdf2_hmac("password", salt: "salt", iterations: 1, length: 20, hash: "sha1") | |
9: assert_equal(expected, OpenSSL::PKCS5.pbkdf2_hmac("password", "salt", 1, 20, "sha1")) | |
10: assert_equal(expected, OpenSSL::PKCS5.pbkdf2_hmac_sha1("password", "salt", 1, 20)) | |
11: end | |
Error: test_pkcs5_pbkdf2_hmac_compatibility(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/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 | |
Error: test_scrypt_rfc7914_first(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/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 | |
Error: test_scrypt_rfc7914_second(OpenSSL::TestKDF): NameError: uninitialized constant OpenSSL::KDF | |
====================================================================================================================== | |
..............E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_ocsp.rb:143:in `test_request_is_signed' | |
140: cid = OpenSSL::OCSP::CertificateId.new(@cert, @ca_cert) | |
141: req = OpenSSL::OCSP::Request.new | |
142: req.add_certid(cid) | |
=> 143: assert_equal false, req.signed? | |
144: assert_equal false, OpenSSL::OCSP::Request.new(req.to_der).signed? | |
145: req.sign(@cert, @cert_key, []) | |
146: assert_equal true, req.signed? | |
Error: test_request_is_signed(OpenSSL::TestOCSP): NoMethodError: undefined method `signed?' for #<OpenSSL::OCSP::Request:0x0000000809708fa8> | |
====================================================================================================================== | |
........................................F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:243:in `test_read_with_outbuf' | |
240: end | |
241: | |
242: def test_read_with_outbuf | |
=> 243: ssl_pair { |s1, s2| | |
244: s1.write("abc\n") | |
245: buf = "" | |
246: ret = s2.read(2, buf) | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:39:in `ssl_pair' | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:257:in `block in test_read_with_outbuf' | |
<""> expected but was | |
<"garbage\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\xBE\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"> | |
E | |
====================================================================================================================== | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit.rb:502:in `block (2 levels) in <top (required)>' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:62:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:434:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:491:in `change_work_directory' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:435:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnerutilities.rb:24:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunner.rb:25:in `start' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunner.rb:40:in `start_mediator' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:39:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:39:in `catch' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:41:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:102:in `with_listener' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:45:in `block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:67:in `run_suite' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:496:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:496:in `catch' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:497:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:286:in `run_setup' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:251:in `run_fixture' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:270:in `block in create_fixtures_runner' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:270:in `block in create_fixtures_runner' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:498:in `block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:504:in `rescue in block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:798:in `handle_exception' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:798:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:802:in `block in handle_exception' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:126:in `handle_assertion_failed_error' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:119:in `add_failure' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:142:in `add_failure' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testresult.rb:128:in `notify_fault' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `block in notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:98:in `block in with_listener' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `block in notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:101:in `add_fault' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:485:in `output_progress_in_detail' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:189:in `output_fault_in_detail' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:303:in `output_failure_message' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:303:in `split' | |
Error: test_read_with_outbuf(OpenSSL::TestPair): ArgumentError: invalid byte sequence in UTF-8 | |
====================================================================================================================== | |
...E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:366:in `test_write_multiple_arguments' | |
363: end | |
364: | |
365: def test_write_multiple_arguments | |
=> 366: ssl_pair {|s1, s2| | |
367: str1 = "foo"; str2 = "bar" | |
368: assert_equal 6, s1.write(str1, str2) | |
369: s1.close | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:39:in `ssl_pair' | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:368:in `block in test_write_multiple_arguments' | |
/usr/local/lib/ruby/2.4/openssl/buffering.rb:342:in `write' | |
Error: test_write_multiple_arguments(OpenSSL::TestPair): ArgumentError: wrong number of arguments (given 2, expected 1) | |
====================================================================================================================== | |
.................F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:243:in `test_read_with_outbuf' | |
240: end | |
241: | |
242: def test_read_with_outbuf | |
=> 243: ssl_pair { |s1, s2| | |
244: s1.write("abc\n") | |
245: buf = "" | |
246: ret = s2.read(2, buf) | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:39:in `ssl_pair' | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:257:in `block in test_read_with_outbuf' | |
<""> expected but was | |
<"garbage\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0001\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\xBE\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"> | |
E | |
====================================================================================================================== | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit.rb:502:in `block (2 levels) in <top (required)>' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:62:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:434:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:491:in `change_work_directory' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/autorunner.rb:435:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnerutilities.rb:24:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunner.rb:25:in `start' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunner.rb:40:in `start_mediator' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:39:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:39:in `catch' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:41:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:102:in `with_listener' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:45:in `block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:67:in `run_suite' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:53:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testsuite.rb:124:in `run_test' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:496:in `run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:496:in `catch' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:497:in `block in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:286:in `run_setup' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:251:in `run_fixture' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:270:in `block in create_fixtures_runner' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/fixture.rb:270:in `block in create_fixtures_runner' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:498:in `block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:504:in `rescue in block (2 levels) in run' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:798:in `handle_exception' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:798:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testcase.rb:802:in `block in handle_exception' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:126:in `handle_assertion_failed_error' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:119:in `add_failure' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/failure.rb:142:in `add_failure' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/testresult.rb:128:in `notify_fault' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `block in notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/testrunnermediator.rb:98:in `block in with_listener' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `each' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/util/observable.rb:78:in `block in notify_listeners' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:101:in `add_fault' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:485:in `output_progress_in_detail' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:189:in `output_fault_in_detail' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:303:in `output_failure_message' | |
/usr/local/lib/ruby/gems/2.4/gems/test-unit-3.2.7/lib/test/unit/ui/console/testrunner.rb:303:in `split' | |
Error: test_read_with_outbuf(OpenSSL::TestPairLowlevelSocket): ArgumentError: invalid byte sequence in UTF-8 | |
====================================================================================================================== | |
...E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:366:in `test_write_multiple_arguments' | |
363: end | |
364: | |
365: def test_write_multiple_arguments | |
=> 366: ssl_pair {|s1, s2| | |
367: str1 = "foo"; str2 = "bar" | |
368: assert_equal 6, s1.write(str1, str2) | |
369: s1.close | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:39:in `ssl_pair' | |
/home/saper/sw/ruby-openssl/test/test_pair.rb:368:in `block in test_write_multiple_arguments' | |
/usr/local/lib/ruby/2.4/openssl/buffering.rb:342:in `write' | |
Error: test_write_multiple_arguments(OpenSSL::TestPairLowlevelSocket): ArgumentError: wrong number of arguments (given 2, expected 1) | |
====================================================================================================================== | |
.........F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509attr.rb:79:in `test_eq' | |
76: attr3 = OpenSSL::X509::Attribute.new("extReq", val2) | |
77: | |
78: assert_equal false, attr1 == 12345 | |
=> 79: assert_equal true, attr1 == attr2 | |
80: assert_equal false, attr1 == attr3 | |
81: end | |
82: end | |
<true> expected but was | |
<false> | |
diff: | |
? tru e | |
? fals | |
Failure: test_eq(OpenSSL::TestX509Attribute) | |
====================================================================================================================== | |
......F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509crl.rb:237:in `test_eq' | |
234: | |
235: # CRL | |
236: assert_equal false, crl1 == 12345 | |
=> 237: assert_equal true, crl1 == crl2 | |
238: rev2 = OpenSSL::X509::Revoked.new.tap { |rev| | |
239: rev.serial = 2 | |
240: rev.time = now | |
<true> expected but was | |
<false> | |
diff: | |
? tru e | |
? fals | |
Failure: test_eq(OpenSSL::TestX509CRL) | |
====================================================================================================================== | |
..E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509crl.rb:220:in `test_revoked_to_der' | |
217: OpenSSL::ASN1::Sequence([ext.to_der]) | |
218: ]) | |
219: | |
=> 220: assert_equal asn1.to_der, rev1.to_der | |
221: end | |
222: | |
223: def test_eq | |
Error: test_revoked_to_der(OpenSSL::TestX509CRL): NoMethodError: undefined method `to_der' for #<OpenSSL::X509::Revoked:0x0000000809809010> | |
====================================================================================================================== | |
...F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509cert.rb:186:in `test_eq' | |
183: digest: "sha512", not_before: now, not_after: now + 3600) | |
184: | |
185: assert_equal false, cert1 == 12345 | |
=> 186: assert_equal true, cert1 == cert2 | |
187: assert_equal false, cert1 == cert3 | |
188: assert_equal false, cert1 == cert4 | |
189: assert_equal false, cert3 == cert4 | |
<true> expected but was | |
<false> | |
diff: | |
? tru e | |
? fals | |
Failure: test_eq(OpenSSL::TestX509Certificate) | |
====================================================================================================================== | |
............F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509ext.rb:86:in `test_eq' | |
83: ext3 = ef.create_extension("basicConstraints", "critical, CA:TRUE") | |
84: | |
85: assert_equal false, ext1 == 12345 | |
=> 86: assert_equal true, ext1 == ext2 | |
87: assert_equal false, ext1 == ext3 | |
88: end | |
89: end | |
<true> expected but was | |
<false> | |
diff: | |
? tru e | |
? fals | |
Failure: test_eq(OpenSSL::TestX509Extension) | |
====================================================================================================================== | |
..E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509name.rb:338:in `test_add_entry_placing' | |
335: # dn.add_entry("CN", "unya", loc: 0, set: 1) | |
336: # assert_equal("OU=b+OU=a,O=ruby-lang+CN=unya", dn.dup.to_s(OpenSSL::X509::Name::RFC2253)) | |
337: dn = orig.dup | |
=> 338: dn.add_entry("CN", "unya", loc: 1, set: -1) | |
339: assert_equal("OU=b+OU=a,O=ruby-lang+CN=unya", dn.dup.to_s(OpenSSL::X509::Name::RFC2253)) | |
340: # dn = orig.dup | |
341: # dn.add_entry("CN", "unya", loc: 1, set: 0) | |
/home/saper/sw/ruby-openssl/test/test_x509name.rb:338:in `add_entry' | |
Error: test_add_entry_placing(OpenSSL::TestX509Name): TypeError: no implicit conversion of Hash into Integer | |
====================================================================================================================== | |
..........E | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509name.rb:385:in `test_to_utf8' | |
382: name = OpenSSL::X509::Name.new | |
383: dn.each { |x| name.add_entry(*x) } | |
384: | |
=> 385: str = name.to_utf8 | |
386: expected = "CN=フー\\, バー,DC=ruby-lang,DC=org".force_encoding("UTF-8") | |
387: assert_equal expected, str | |
388: assert_equal Encoding.find("UTF-8"), str.encoding | |
Error: test_to_utf8(OpenSSL::TestX509Name): NoMethodError: undefined method `to_utf8' for #<OpenSSL::X509::Name:0x0000000803bb7460> | |
====================================================================================================================== | |
....F | |
====================================================================================================================== | |
/home/saper/sw/ruby-openssl/test/test_x509req.rb:150:in `test_eq' | |
147: req3 = issue_csr(0, @dn, @rsa1024, "sha256") | |
148: | |
149: assert_equal false, req1 == 12345 | |
=> 150: assert_equal true, req1 == req2 | |
151: assert_equal false, req1 == req3 | |
152: end | |
153: | |
<true> expected but was | |
<false> | |
diff: | |
? tru e | |
? fals | |
Failure: test_eq(OpenSSL::TestX509Request) | |
====================================================================================================================== | |
............ | |
Finished in 11.164501709 seconds. | |
---------------------------------------------------------------------------------------------------------------------- | |
388 tests, 2691 assertions, 9 failures, 53 errors, 15 pendings, 0 omissions, 0 notifications | |
80.6701% passed | |
---------------------------------------------------------------------------------------------------------------------- | |
34.75 tests/s, 241.03 assertions/s | |
rake aborted! | |
Command failed with status (1) | |
Tasks: TOP => test | |
(See full trace by running task with --trace) | |
Command exit status: 1 | |
Script done on Wed Dec 27 23:15:40 2017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment