Skip to content

Commit c8aedba

Browse files
authored
Merge pull request #636 from junaruga/wip/upgrade-openssl-versions
CI: Upgrade OpenSSL and LibreSSL versions.
2 parents 35456a3 + 93548ae commit c8aedba

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,24 @@ jobs:
6464
os: [ ubuntu-latest ]
6565
ruby: [ "3.0" ]
6666
openssl:
67+
# https://www.openssl.org/source/
6768
- openssl-1.0.2u # EOL
6869
- openssl-1.1.0l # EOL
69-
- openssl-1.1.1t
70-
- openssl-3.0.8
70+
- openssl-1.1.1u
71+
- openssl-3.0.9
72+
- openssl-3.1.1
73+
# http://www.libressl.org/releases.html
7174
- libressl-3.1.5 # EOL
7275
- libressl-3.2.7 # EOL
7376
- libressl-3.3.6 # EOL
7477
- libressl-3.4.3 # EOL
75-
- libressl-3.5.3
76-
- libressl-3.6.1
77-
- libressl-3.7.0 # Development release
78+
- libressl-3.5.3 # EOL
79+
- libressl-3.6.3
80+
- libressl-3.7.3
81+
- libressl-3.8.0 # Development release
7882
fips-enabled: [ false ]
7983
include:
80-
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.8, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
84+
- { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.9, fips-enabled: true, append-configure: 'enable-fips', name-extra: 'fips' }
8185
steps:
8286
- name: repo checkout
8387
uses: actions/checkout@v3

test/openssl/test_bn.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def test_mod_sqr
175175
end
176176

177177
def test_mod_sqrt
178-
assert_equal(3, 4.to_bn.mod_sqrt(5))
178+
assert_equal(4, 4.to_bn.mod_sqrt(5).mod_sqr(5))
179+
# One of 189484 or 326277 is returned as a square root of 2 (mod 515761).
180+
assert_equal(2, 2.to_bn.mod_sqrt(515761).mod_sqr(515761))
179181
assert_equal(0, 5.to_bn.mod_sqrt(5))
180182
assert_raise(OpenSSL::BNError) { 3.to_bn.mod_sqrt(5) }
181183
end

0 commit comments

Comments
 (0)