An interpreter of object-oriented scripting language
Go to file
Jun Aruga fd43690d47 Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters.
This commit was cherry-picked from Fedora rawhide branch commit
<e7395a7d22>.

Fedora OpenSSL 3.5 on rawhide stopped accepting SHA-1 PSS[1] parameters.
This is different from the SHA-1 signatures which Fedora OpenSSL stopped
accepting since Fedora 41.[2]

This commit fixes the following test failures related to the SHA-1 PSS
parameters with Fedora OpenSSL 3.5.
Note these failures are the downstream Fedora OpenSSL RPM specific.

```
184) Error:
OpenSSL::TestPKeyRSA#test_sign_verify_options:
OpenSSL::PKey::PKeyError: EVP_PKEY_CTX_ctrl_str(ctx, "rsa_mgf1_md", "SHA1"): digest not allowed (digest=SHA1)
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'Hash#each'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'OpenSSL::PKey::PKey#sign'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:113:in 'OpenSSL::TestPKeyRSA#test_sign_verify_options'
185) Error:
OpenSSL::TestPKeyRSA#test_sign_verify_pss:
OpenSSL::PKey::RSAError: digest not allowed (digest=SHA1)
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:191:in 'OpenSSL::PKey::RSA#sign_pss'
    /builddir/build/BUILD/ruby-3.4.2-build/ruby-3.4.2/test/openssl/test_pkey_rsa.rb:191:in 'OpenSSL::TestPKeyRSA#test_sign_verify_pss'
Finished tests in 1152.595208s, 27.9812 tests/s, 5697.0278 assertions/s.
32251 tests, 6566367 assertions, 0 failures, 2 errors, 183 skips
```

According to a maintainer of the rpms/openssl, Dmitry Belyavskiy
<dbelyavs@redhat.com>, the following patch is disabling SHA-1 PSS parameters.
5f41d6a8f5/f/0018-RH-Allow-disabling-of-SHA1-signatures.patch

Related: RHEL-87342
2025-04-30 16:47:41 +02:00
.fmf Add gating configuration 2024-08-07 13:26:06 +00:00
plans Use different repo in gating tmt plan 2024-11-29 11:53:14 +01:00
.gitignore Upgrade to Ruby 3.0.0. 2021-01-04 16:42:55 +01:00
gating.yaml Add gating configuration 2024-08-07 13:26:06 +00:00
libruby.stp Add TapSet for Ruby. 2013-02-22 14:17:04 +01:00
macros.ruby Add %{ruby_default_filter} macro. 2013-04-30 14:42:13 +02:00
macros.rubygems Upgrade to Ruby 3.3.0. 2024-01-02 18:52:33 +01:00
operating_system.rb Upgrade to Ruby 3.3.0. 2024-01-02 18:52:33 +01:00
rpm_test_helper.rb Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-2.1.0-always-use-i386.patch Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-2.1.0-custom-rubygems-location.patch Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-2.1.0-Enable-configuration-of-archlibdir.patch Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-2.3.0-ruby_version.patch Upgrade to Ruby 3.3.7. 2025-02-05 13:27:12 +01:00
ruby-2.7.0-Initialize-ABRT-hook.patch Upgrade to Ruby 3.3.7. 2025-02-05 13:27:12 +01:00
ruby-3.3.0-Disable-syntax-suggest-test-case.patch Upgrade to Ruby 3.3.0. 2024-01-02 18:52:33 +01:00
ruby-3.4.0-Extract-hardening-CFLAGS-to-a-special-hardenflags-variable.patch Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
ruby-3.4.0-openssl-fix-test-provider-in-fips.patch Fix test_provider.rb test_openssl_provider_names. 2025-04-25 14:11:07 +02:00
ruby-3.4.0-openssl-make-a-legacy-provider-test-optional.patch Fix test_provider.rb test_openssl_provider_names. 2025-04-25 14:11:07 +02:00
ruby-3.4.0-openssl-respect-crypto-policies-tls-min.patch Fix Ruby OpenSSL to respect crypto-policies TLS minimal version. 2025-02-05 13:28:54 +01:00
ruby-3.4.2-openssl-Fix-SHA-1-PSS-tests.patch Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters. 2025-04-30 16:47:41 +02:00
ruby-exercise.stp Add missing ruby-exercise.stp file. 2013-02-22 14:17:53 +01:00
ruby.rpmlintrc Upgrade to Ruby 3.3.0. 2024-01-02 18:52:33 +01:00
ruby.spec Fix the tests using SHA-1 Probabilistic Signature Scheme (PSS) parameters. 2025-04-30 16:47:41 +02:00
rubygems.attr Add conflicts RPM generator. 2018-02-13 13:50:15 +01:00
rubygems.con Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
rubygems.prov Upgrade to Ruby 2.6.0. 2019-01-17 08:31:01 +01:00
rubygems.req Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
sources Upgrade to Ruby 3.3.8. 2025-04-15 17:09:17 +02:00
test_abrt.rb Move the ABRT hook test into separate file. 2015-12-13 19:36:58 +01:00
test_openssl_fips.rb Fix OpenSSL.fips_mode and OpenSSL::PKey.read in OpenSSL 3 FIPS. 2023-09-22 12:54:53 +02:00
test_rubygems_con.rb Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
test_rubygems_prov.rb Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
test_rubygems_req.rb Upgrade to Ruby 3.3.5. 2024-09-17 17:42:49 +02:00
test_systemtap.rb Upgrade to Ruby 2.4.0. 2017-01-09 15:58:21 +01:00