mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[ruby/openssl] 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.
3117897dbc
This commit is contained in:
parent
841d9f259d
commit
23465d8446
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,7 @@ class OpenSSL::TestPKeyDH < OpenSSL::PKeyTestCase
|
|||
end if ENV["OSSL_TEST_ALL"]
|
||||
|
||||
def test_new_break_on_non_fips
|
||||
omit_on_fips
|
||||
omit_on_fips if !aws_lc?
|
||||
|
||||
assert_nil(OpenSSL::PKey::DH.new(NEW_KEYLEN) { break })
|
||||
assert_raise(RuntimeError) do
|
||||
|
@ -29,6 +29,7 @@ class OpenSSL::TestPKeyDH < OpenSSL::PKeyTestCase
|
|||
|
||||
def test_new_break_on_fips
|
||||
omit_on_non_fips
|
||||
return unless openssl? # This behavior only applies to OpenSSL.
|
||||
|
||||
# The block argument is not executed in FIPS case.
|
||||
# See https://github.com/ruby/openssl/issues/692 for details.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue