START lib/libssl/rust-openssl 2024-05-05T02:26:25Z ==== rust-openssl-test ==== cp /usr/src/regress/lib/libssl/rust-openssl/Cargo.toml /usr/src/regress/lib/libssl/rust-openssl/obj/ mkdir -p .cargo cp /usr/src/regress/lib/libssl/rust-openssl/config .cargo/ cd /usr/src/regress/lib/libssl/rust-openssl/obj && ln -sf /usr/local/share/rust-openssl-tests/openssl /usr/local/share/rust-openssl-tests/openssl-errors /usr/local/share/rust-openssl-tests/openssl-macros /usr/local/share/rust-openssl-tests/openssl-sys /usr/local/share/rust-openssl-tests/systest . touch .workspace cd /usr/src/regress/lib/libssl/rust-openssl/obj && env CC=cc cargo test --offline --color=never -- --color=never Compiling proc-macro2 v1.0.81 Compiling unicode-ident v1.0.12 Compiling libc v0.2.153 Compiling cc v1.0.95 Compiling vcpkg v0.2.15 Compiling pkg-config v0.3.30 Compiling serde v1.0.199 Compiling openssl v0.10.64 (/usr/obj/regress/lib/libssl/rust-openssl/openssl) Compiling cfg-if v0.1.10 Compiling foreign-types-shared v0.1.1 Compiling cfg-if v1.0.0 Compiling foreign-types v0.3.2 Compiling serde_json v1.0.116 Compiling semver v1.0.22 Compiling bitflags v2.5.0 Compiling once_cell v1.19.0 Compiling itoa v1.0.11 Compiling ryu v1.0.17 Compiling unicode-xid v0.2.4 Compiling dirs-sys v0.3.7 Compiling log v0.4.21 Compiling bitflags v1.3.2 Compiling dirs v2.0.2 Compiling openssl-errors v0.2.0 (/usr/obj/regress/lib/libssl/rust-openssl/openssl-errors) Compiling quote v1.0.36 Compiling term v0.6.1 Compiling rustc_version v0.4.0 Compiling hex v0.3.2 Compiling syn v2.0.60 Compiling openssl-sys v0.9.102 (/usr/obj/regress/lib/libssl/rust-openssl/openssl-sys) Compiling serde_derive v1.0.199 Compiling openssl-macros v0.1.1 (/usr/obj/regress/lib/libssl/rust-openssl/openssl-macros) Compiling garando_pos v0.1.0 Compiling garando_errors v0.1.0 Compiling garando_syntax v0.1.1 Compiling ctest2 v0.4.8 Compiling systest v0.1.0 (/usr/obj/regress/lib/libssl/rust-openssl/systest) Finished test [unoptimized + debuginfo] target(s) in 2m 11s Running unittests src/lib.rs (target/debug/deps/openssl-a798bb659c88e30e) running 312 tests test aes::test::test_wrap_unwrap ... ok test aes::test::ige_vector_1 ... ok test asn1::tests::asn1_octet_string ... ok test asn1::tests::time_from_str ... ok test asn1::tests::object_from_str ... ok test asn1::tests::bn_cvt ... ok test asn1::tests::integer_cmp ... ok test asn1::tests::time_from_unix ... ok test asn1::tests::object_from_str_with_invalid_input ... ok test asn1::tests::integer_to_owned ... ok test base64::tests::test_decode_block ... ok test base64::tests::test_encode_block ... ok test base64::tests::test_strip_whitespace ... ok test bn::tests::test_negation ... ok test bn::tests::test_odd_even ... ok test bn::tests::test_pseudo_rand_range ... ok test bn::tests::test_rand_range ... ok test bn::tests::test_to_from_slice ... ok test bn::tests::test_shift ... ok test bn::tests::test_mod_sqrt ... ok test cipher_ctx::test::default_aes_128_cbc ... ok test cipher_ctx::test::test_stream_ciphers ... ok test derive::test::derive_without_peer ... ok test dh::tests::test_dh_from_der ... ok test dh::tests::test_dh_from_pem ... ok test derive::test::test_ec_key_derive ... ok test dh::tests::test_dh_params ... ok test cipher_ctx::test::seal_open ... ok test dsa::test::dsa_sig_debug ... ok test cipher_ctx::test::full_block_updates_3des - should panic ... ok test cipher_ctx::test::full_block_updates_aes_128 - should panic ... ok test cipher_ctx::test::full_block_updates_aes_256 - should panic ... ok test dsa::test::test_priv_key_from_parts ... ok test dsa::test::test_pub_key_from_parts ... ok test bn::tests::test_prime_numbers ... ok test dsa::test::test_signature ... ok test ec::test::asn1_flag ... ok test ec::test::cofactor ... ok test ec::test::dup ... ok test ec::test::ec_group_from_components ... ok test ec::test::ec_group_set_generator ... ok test ec::test::ec_point_set_affine ... ok test ec::test::generate ... ok test ec::test::generator ... ok test ec::test::get_affine_coordinates ... ok test ec::test::get_affine_coordinates_gfp ... ok test ec::test::is_infinity ... ok test ec::test::key_from_affine_coordinates ... ok test ec::test::key_from_private_components ... ok test ec::test::key_from_public_key ... ok test ec::test::key_new_by_curve_name ... ok test ec::test::mul_generator ... ok test ec::test::point_bytes ... ok test ec::test::point_hex_str ... ok test ec::test::point_new ... ok test ec::test::point_owned ... ok test ecdsa::test::check_private_components ... ok test ecdsa::test::serialize_deserialize ... ok test dsa::test::test_params ... ok test ecdsa::test::sign_and_verify ... ok test encrypt::test::rsa_encrypt_decrypt ... ok test encrypt::test::rsa_encrypt_decrypt_oaep_label ... ok test encrypt::test::rsa_encrypt_decrypt_with_sha256 ... ok test error::tests::test_error_library_code ... ok test hash::tests::from_name ... ok test hash::tests::from_nid ... ok test hash::tests::test_clone ... ok test hash::tests::test_finish_twice ... ok test hash::tests::test_md5 ... ok test hash::tests::test_md5_recycle ... ok test hash::tests::test_ripemd160 ... ok test hash::tests::test_sha1 ... ok test hash::tests::test_sha256 ... ok test envelope::test::public_encrypt_private_decrypt ... ok test hash::tests::test_sha3_224 ... ok test hash::tests::test_sha3_256 ... ok test hash::tests::test_sha3_384 ... ok test hash::tests::test_sha3_512 ... ok test hash::tests::test_sha512 ... ok test hash::tests::test_sm3 ... ok test md_ctx::test::verify_md_ctx_size ... ok test dsa::test::test_signature_der ... ok test dsa::test::test_pubkey_generation ... ok test memcmp::tests::test_diff_lens - should panic ... ok test memcmp::tests::test_eq ... ok test nid::test::signature_digest ... ok test nid::test::test_create ... ok test nid::test::test_long_name_conversion ... ok test nid::test::test_short_name_conversion ... ok test md_ctx::test::verify_success ... ok test pkcs12::test::create_only_ca ... ok test pkcs12::test::parse ... ok test pkcs12::test::parse_empty_chain ... ok test dsa::test::test_generate ... ok test pkcs5::tests::bytes_to_key ... ok test pkcs5::tests::pbkdf2_hmac_sha512 ... ok test pkcs12::test::create ... ok test pkcs7::tests::invalid_from_smime ... ok test pkcs7::tests::sign_verify_test_detached ... ok test pkcs7::tests::encrypt_decrypt_test ... ok test pkcs7::tests::signed_data_certificates ... ok test pkcs7::tests::signed_data_certificates_no_signed_data ... ok test pkcs7::tests::sign_verify_test_normal ... ok test pkey::tests::test_dh_accessor ... ok test pkcs7::tests::signers ... ok test pkey::tests::test_dh_conversion ... ok test md_ctx::test::verify_with_public_success ... ok test pkey::tests::test_ec_key_accessor ... ok test pkey::tests::test_ec_key_conversion ... ok test pkey::tests::test_encrypted_pkcs8_callback ... ok test dh::tests::test_dh_check_key ... ok test pkey::tests::test_pem ... ok test pkey::tests::test_private_key_from_der ... ok test pkey::tests::test_private_key_from_pem ... ok test pkcs5::tests::pbkdf2_hmac_sha256 ... ok test pkey::tests::test_public_key_from_der ... ok test pkey::tests::test_public_key_from_pem ... ok test pkey::tests::test_raw_private_key_bytes ... ok test pkey::tests::test_raw_public_key_bytes ... ok test pkey::tests::test_encrypted_pkcs8_passphrase ... ok test pkey::tests::test_public_eq ... ok test pkey::tests::test_security_bits ... ok test pkey::tests::test_to_password ... ok test pkey::tests::test_unencrypted_pkcs8 ... ok test pkey_ctx::test::cmac_keygen ... ok test pkey_ctx::test::derive ... ok test pkey_ctx::test::hkdf ... ok test pkey_ctx::test::hkdf_expand ... ok test pkey_ctx::test::hkdf_extract ... ok test pkey::tests::test_rsa_accessor ... ok test pkey_ctx::test::rsa ... ok test pkey_ctx::test::rsa_oaep ... ok test pkey_ctx::test::rsa_sign ... ok test pkey_ctx::test::rsa_sign_pss ... ok test dsa::test::clone ... ok test pkey_ctx::test::verify_fail_ec ... ok test rand::tests::test_rand_bytes ... ok test rsa::test::clone ... ok test pkey::tests::test_rsa_conversion ... ok test rsa::test::test_from_password ... ok test rsa::test::test_from_password_callback ... ok test pkey_ctx::test::test_verify_recover ... ok test rsa::test::generate_with_e ... ok test rsa::test::test_private_encrypt ... ok test rsa::test::test_public_encrypt ... ok test rsa::test::test_public_encrypt_private_decrypt_with_padding ... ok test rsa::test::test_public_key_from_pem_pkcs1 ... ok test rsa::test::test_public_key_from_pem_pkcs1_file_panic - should panic ... ok test rsa::test::test_public_key_from_pem_pkcs1_generate_panic - should panic ... ok test rsa::test::test_public_key_to_pem_pkcs1 ... ok test rsa::test::test_pem_pkcs1_padding ... ok test sha::test::cloning_allows_incremental_hashing ... ok test sha::test::standalone_1 ... ok test sha::test::standalone_224 ... ok test sha::test::standalone_256 ... ok test sha::test::standalone_384 ... ok test sha::test::standalone_512 ... ok test sha::test::struct_1 ... ok test sha::test::struct_224 ... ok test sha::test::struct_256 ... ok test sha::test::struct_384 ... ok test sha::test::struct_512 ... ok test sign::test::ec ... ok test sign::test::eddsa ... ok test sign::test::hmac_md5 ... ok test sign::test::hmac_sha1 ... ok test sign::test::rsa_sign ... ok test sign::test::rsa_verify_invalid ... ok test sign::test::rsa_verify_ok ... ok test ssl::test::active_session ... ignored test ssl::test::add_extra_chain_cert ... ok test dh::tests::test_dh_generate_params_generate_key_compute_key ... ok test ssl::test::clear_ctx_options ... ok test ssl::test::client_ca_list ... ok test ssl::test::cert_store ... ok test ssl::test::connector_can_disable_verify ... ok test ssl::test::connector_client_server_mozilla_intermediate ... ok test ssl::test::connector_client_server_mozilla_intermediate_v5 ... ok test rsa::test::test_pem_pkcs1_encrypt ... ok test ssl::test::connector_client_server_mozilla_modern ... ok test ssl::test::connector_client_server_mozilla_modern_v5 ... ok test ssl::test::connector_does_use_sni_with_dnsnames ... ok test ssl::test::connector_doesnt_use_sni_with_ips ... ok test ssl::test::connector_invalid_hostname ... ok test ssl::test::connector_no_hostname_still_verifies ... ok test ssl::test::default_verify_paths ... ignored test ssl::test::flush_panic - should panic ... ok test ssl::test::get_ctx_options ... ok test ssl::test::idle_session ... ok test ssl::test::keying_export ... ok test ssl::test::new_session_callback ... ignored test ssl::test::new_session_callback_swapped_ctx ... ignored test ssl::test::no_version_overlap ... ok test ssl::test::peer_certificate ... ok test ssl::test::connector_invalid_no_hostname_verification ... ok test ssl::test::read_panic - should panic ... ok test ssl::test::refcount_ssl_context ... ok test ssl::test::session_cache_size ... ok test ssl::test::set_ctx_options ... ok test ssl::test::pending ... ok test ssl::test::shutdown ... ok test ssl::test::ssl_ctx_ex_data_leak ... ok test ssl::test::ssl_ex_data_leak ... ok test ssl::test::connector_valid_hostname ... ok test ssl::test::sni_callback_swapped_ctx ... ok test ssl::test::ssl_verify_callback ... ok test ssl::test::status_callbacks ... ok test ssl::test::state ... ok test ssl::test::test_alpn_server_advertise_multiple ... ok test ssl::test::test_alpn_server_select_none ... ok test ssl::test::test_alpn_server_unilateral ... ok test ssl::test::test_connect_with_srtp_ctx ... ok test ssl::test::test_connect_with_srtp_ssl ... ok test ssl::test::verify_callback ... ok test ssl::test::verify_callback_load_certs ... ok test ssl::test::verify_trusted ... ok test ssl::test::verify_trusted_callback_override_bad ... ok test ssl::test::tmp_dh_callback ... ok test ssl::test::verify_trusted_callback_override_ok ... ok test ssl::test::tmp_dh_callback_ssl ... ok test ssl::test::verify_trusted_get_error_err ... ok test ssl::test::verify_trusted_get_error_ok ... ok test ssl::test::verify_untrusted ... ok test ssl::test::write_panic - should panic ... ok test ssl::test::verify_untrusted_callback_override_bad ... ok test symm::tests::test_aes128_ccm ... ok test symm::tests::test_aes128_ccm_verify_fail ... ok test symm::tests::test_aes128_cfb1 ... ok test symm::tests::test_aes128_cfb128 ... ok test symm::tests::test_aes128_cfb8 ... ok test symm::tests::test_aes128_ctr ... ok test symm::tests::test_aes128_gcm ... ok test symm::tests::test_aes128_ofb ... ok test symm::tests::test_aes192_cfb1 ... ok test symm::tests::test_aes192_cfb128 ... ok test symm::tests::test_aes192_cfb8 ... ok test symm::tests::test_aes192_ctr ... ok test symm::tests::test_aes192_ofb ... ok test ssl::test::verify_untrusted_callback_override_ok ... ok test ssl::test::zero_length_buffers ... ok test symm::tests::test_aes256_ccm ... ok test symm::tests::test_aes256_ccm_verify_fail ... ok test symm::tests::test_aes256_cfb1 ... ok test symm::tests::test_aes256_cfb8 ... ok test symm::tests::test_aes256_cfb128 ... ok test symm::tests::test_aes256_ofb ... ok test symm::tests::test_aes256_xts ... ok test symm::tests::test_aes_256_cbc_decrypt ... ok test symm::tests::test_aes_256_ecb ... ok test symm::tests::test_bf_cbc ... ok test symm::tests::test_bf_cfb64 ... ok test symm::tests::test_bf_ecb ... ok test symm::tests::test_bf_ofb ... ok test symm::tests::test_chacha20 ... ok test symm::tests::test_des_cbc ... ok test symm::tests::test_chacha20_poly1305 ... ok test symm::tests::test_des_ecb ... ok test symm::tests::test_des_ede3 ... ok test symm::tests::test_des_ede3_cbc ... ok test symm::tests::test_des_ede3_cfb64 ... ok test symm::tests::test_rc4 ... ok test symm::tests::test_stream_cipher_output ... ok test version::test_versions ... ok test x509::tests::clone_x509 ... ok test x509::tests::eku_invalid_other ... ok test x509::tests::signature ... ok test x509::tests::issued ... ok test x509::tests::test_add_name_entry ... ok test x509::tests::test_aia_ca_issuer ... ok test x509::tests::test_cert_issue_validity ... ok test x509::tests::test_cert_loading ... ok test x509::tests::test_convert_req_to_text ... ok test x509::tests::test_convert_to_text ... ok test x509::tests::test_crl_entry_extensions ... ok test x509::tests::test_debug ... ok test x509::tests::test_dist_point ... ok test x509::tests::test_dist_point_null ... ok test x509::tests::test_load_cert_file ... ok test x509::tests::test_load_crl_file_fail ... ok test x509::tests::test_load_crl ... ok test x509::tests::test_load_subject_der ... ok test x509::tests::test_name_cmp ... ok test x509::tests::test_nameref_iterator ... ok test x509::tests::test_name_to_owned ... ok test x509::tests::test_nid_uid_value ... ok test x509::tests::test_nid_values ... ok test x509::tests::test_save_der ... ok test x509::tests::test_save_subject_der ... ok test x509::tests::test_stack_from_pem ... ok test x509::tests::test_subject_alt_name_iter ... ok test x509::tests::test_subject_alt_name ... ok test x509::tests::test_subject_read_cn ... ok test x509::tests::test_verify_cert ... ok test x509::tests::test_verify_cert_with_purpose ... ok test x509::tests::test_verify_cert_with_wrong_purpose_fails ... ok test x509::tests::test_verify_fails_with_crl_flag_set_and_no_crl ... ok test x509::tests::test_verify_fails ... ok test x509::tests::test_verify_param_set_depth ... ok test x509::tests::test_verify_param_set_depth_fails_verification ... ok test x509::tests::test_verify_param_set_time_fails_verification ... ok test x509::tests::test_verify_param_set_time ... ok test x509::tests::x509_extension_new ... ok test x509::tests::x509_extension_new_from_der ... ok test x509::tests::x509_extension_to_der ... ok test rsa::test::test_to_password ... ok test x509::tests::x509_req_builder ... ok test x509::tests::x509_builder ... ok test pkey::tests::test_dsa_conversion ... ok test symm::tests::test_sm4_ecb ... ok test md_ctx::test::verify_fail ... ok test pkey::tests::test_dsa_accessor ... ok test pkey_ctx::test::verify_fail ... ok test result: ok. 308 passed; 0 failed; 4 ignored; 0 measured; 0 filtered out; finished in 10.58s Running unittests src/lib.rs (target/debug/deps/openssl_errors-262da0f1cc6feb43) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running tests/test.rs (target/debug/deps/test-e4d6368d039c7609) running 4 tests test static_data ... ok test basic ... ok test dynamic_data ... ok test deferred_error_render ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (target/debug/deps/openssl_macros-2926d6363418ac69) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/lib.rs (target/debug/deps/openssl_sys-16b6c6feb0cbf763) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Running unittests src/main.rs (target/debug/deps/systest-a9a0fbe3c2dca328) running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests openssl running 64 tests test openssl/src/aes.rs - aes (line 26) ... ok test openssl/src/asn1.rs - asn1 (line 23) ... ok test openssl/src/bn.rs - bn::BigNumRef::generate_prime (line 429) ... ok test openssl/src/bn.rs - bn::BigNum::from_slice (line 1101) ... ok test openssl/src/bn.rs - bn::BigNum::copy_from_slice (line 1129) ... ok test openssl/src/bn.rs - bn (line 11) ... ok test openssl/src/bn.rs - bn::BigNum (line 136) ... ok test openssl/src/aes.rs - aes (line 42) ... ok test openssl/src/bn.rs - bn::BigNumRef::rand (line 374) ... ok test openssl/src/bn.rs - bn::BigNumRef::to_dec_str (line 862) ... ok test openssl/src/bn.rs - bn::BigNumRef::to_hex_str (line 878) ... ok test openssl/src/bn.rs - bn::BigNumRef::to_vec (line 809) ... ok test openssl/src/bn.rs - bn::BigNumRef::to_vec_padded (line 835) ... ok test openssl/src/cipher_ctx.rs - cipher_ctx (line 7) ... ok test openssl/src/bn.rs - bn::BigNumRef::ucmp (line 319) ... ok test openssl/src/conf.rs - conf::methods::Conf::new (line 53) ... ok test openssl/src/cipher_ctx.rs - cipher_ctx (line 32) ... ok test openssl/src/derive.rs - derive (line 7) ... ok test openssl/src/dsa.rs - dsa::DsaSig (line 385) ... ok test openssl/src/ec.rs - ec::EcKey::from_public_key (line 825) ... ok test openssl/src/ec.rs - ec::EcGroup::from_curve_name (line 130) ... ok test openssl/src/ec.rs - ec::EcKey::generate (line 915) ... ok test openssl/src/encrypt.rs - encrypt::Encrypter<'a>::encrypt (line 192) ... ok test openssl/src/encrypt.rs - encrypt::Decrypter<'a>::decrypt (line 396) ... ok test openssl/src/error.rs - error (line 8) ... ok test openssl/src/encrypt.rs - encrypt (line 10) ... ok test openssl/src/hash.rs - hash (line 7) ... ok test openssl/src/hash.rs - hash::Hasher (line 210) ... ok test openssl/src/hash.rs - hash::hash (line 426) ... ok test openssl/src/hash.rs - hash (line 20) ... ok test openssl/src/envelope.rs - envelope (line 5) ... ok test openssl/src/dsa.rs - dsa::Dsa (line 41) ... ok test openssl/src/lib.rs - (line 114) ... ok test openssl/src/lib.rs - (line 98) ... ok test openssl/src/memcmp.rs - memcmp (line 18) ... ok test openssl/src/md_ctx.rs - md_ctx (line 56) ... ok test openssl/src/md_ctx.rs - md_ctx (line 7) ... ok test openssl/src/memcmp.rs - memcmp::eq (line 50) ... ok test openssl/src/nid.rs - nid::Nid (line 36) ... ok test openssl/src/pkey.rs - pkey::PKey::generate_ed25519 (line 582) ... ok test openssl/src/pkey.rs - pkey::PKey::generate_x25519 (line 526) ... ok test openssl/src/pkey_ctx.rs - pkey_ctx (line 25) ... ok test openssl/src/pkey.rs - pkey (line 31) ... ok test openssl/src/rand.rs - rand (line 7) ... ok test openssl/src/rand.rs - rand::rand_bytes (line 25) ... ok test openssl/src/rsa.rs - rsa::Rsa::from_private_components (line 495) ... ok test openssl/src/sha.rs - sha (line 16) ... ok test openssl/src/md_ctx.rs - md_ctx (line 26) ... ok test openssl/src/sha.rs - sha (line 32) ... ok test openssl/src/rsa.rs - rsa (line 18) ... ok test openssl/src/ssl/mod.rs - ssl (line 10) - compile ... ok test openssl/src/ssl/mod.rs - ssl (line 28) - compile ... ok test openssl/src/pkey_ctx.rs - pkey_ctx (line 7) ... ok test openssl/src/sign.rs - sign (line 41) ... ok test openssl/src/symm.rs - symm (line 7) ... ok test openssl/src/symm.rs - symm::decrypt (line 799) ... ok test openssl/src/sign.rs - sign (line 12) ... ok test openssl/src/x509/extension.rs - x509::extension (line 10) ... ok test openssl/src/symm.rs - symm::encrypt (line 760) ... ok test openssl/src/symm.rs - symm::Crypter (line 544) ... ok test openssl/src/symm.rs - symm (line 28) ... ok test openssl/src/x509/mod.rs - x509::X509Builder::set_subject_name (line 277) ... ok test openssl/src/x509/store.rs - x509::store (line 8) ... ok test openssl/src/pkey_ctx.rs - pkey_ctx (line 39) ... ok test result: ok. 64 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 16.48s Doc-tests openssl-errors running 1 test test openssl-errors/src/lib.rs - (line 7) ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.53s Doc-tests openssl-macros running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests openssl-sys running 0 tests test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s PASS lib/libssl/rust-openssl Duration 2m47.32s