Skip to content

Commit 3117897

Browse files
pkey/dh: tweak break tests for AWS-LC
We reecently tweaked some break tests in test_pkey_dh.rb due to different behavior with OpenSSL in FIPS mode. AWS-LC does not inherit the same specific behavior, so tests have been adjusted accordingly.
1 parent be8ba76 commit 3117897

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/openssl/test_pkey_dh.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def test_new_generate
1919
end if ENV["OSSL_TEST_ALL"]
2020

2121
def test_new_break_on_non_fips
22-
omit_on_fips
22+
omit_on_fips if !aws_lc?
2323

2424
assert_nil(OpenSSL::PKey::DH.new(NEW_KEYLEN) { break })
2525
assert_raise(RuntimeError) do
@@ -29,6 +29,7 @@ def test_new_break_on_non_fips
2929

3030
def test_new_break_on_fips
3131
omit_on_non_fips
32+
return unless openssl? # This behavior only applies to OpenSSL.
3233

3334
# The block argument is not executed in FIPS case.
3435
# See https://github.com/ruby/openssl/issues/692 for details.

0 commit comments

Comments
 (0)