aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2023-06-07 01:08:48 +0900
committerGitHub <noreply@github.com>2023-06-07 01:08:48 +0900
commitc8aedba795a277579ab8d5b82dd0ce842dd30d44 (patch)
tree806ecffd1e95aaf91eba82e4af6ff782184c3ac7
parent35456a3a42f5af9aedd81164e1581ccafb62fbf1 (diff)
parent93548ae9597ba40d3f8b564f6a948ce55b432e30 (diff)
downloadruby-openssl-c8aedba795a277579ab8d5b82dd0ce842dd30d44.tar.gz
Merge pull request #636 from junaruga/wip/upgrade-openssl-versions
CI: Upgrade OpenSSL and LibreSSL versions.
-rw-r--r--.github/workflows/test.yml16
-rw-r--r--test/openssl/test_bn.rb4
2 files changed, 13 insertions, 7 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 350c9517..a137877d 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -64,20 +64,24 @@ jobs:
os: [ ubuntu-latest ]
ruby: [ "3.0" ]
openssl:
+ # https://www.openssl.org/source/
- openssl-1.0.2u # EOL
- openssl-1.1.0l # EOL
- - openssl-1.1.1t
- - openssl-3.0.8
+ - openssl-1.1.1u
+ - openssl-3.0.9
+ - openssl-3.1.1
+ # http://www.libressl.org/releases.html
- libressl-3.1.5 # EOL
- libressl-3.2.7 # EOL
- libressl-3.3.6 # EOL
- libressl-3.4.3 # EOL
- - libressl-3.5.3
- - libressl-3.6.1
- - libressl-3.7.0 # Development release
+ - libressl-3.5.3 # EOL
+ - libressl-3.6.3
+ - libressl-3.7.3
+ - libressl-3.8.0 # Development release
fips-enabled: [ false ]
include:
- - { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.8, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
+ - { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.9, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
steps:
- name: repo checkout
uses: actions/checkout@v3
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb
index 77af1409..ea88ff06 100644
--- a/test/openssl/test_bn.rb
+++ b/test/openssl/test_bn.rb
@@ -175,7 +175,9 @@ class OpenSSL::TestBN < OpenSSL::TestCase
end
def test_mod_sqrt
- assert_equal(3, 4.to_bn.mod_sqrt(5))
+ assert_equal(4, 4.to_bn.mod_sqrt(5).mod_sqr(5))
+ # One of 189484 or 326277 is returned as a square root of 2 (mod 515761).
+ assert_equal(2, 2.to_bn.mod_sqrt(515761).mod_sqr(515761))
assert_equal(0, 5.to_bn.mod_sqrt(5))
assert_raise(OpenSSL::BNError) { 3.to_bn.mod_sqrt(5) }
end