Skip to content

Commit 3fc8972

Browse files
authored
Merge pull request #786 from junaruga/wip/EVP_PKEY_paramgen-fips-dsa
test_s_generate_parameters: Consider a DSA error in FIPS.
2 parents a664af8 + 5ca6eb4 commit 3fc8972

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/openssl/test_pkey.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ def test_s_generate_parameters
3838
assert_raise(OpenSSL::PKey::PKeyError) {
3939
OpenSSL::PKey.generate_parameters("EC", "invalid" => "option")
4040
}
41+
end
42+
43+
def test_s_generate_parameters_with_block
44+
# DSA kengen is not FIPS-approved.
45+
# https://github.com/openssl/openssl/commit/49a35f0#diff-605396c063194975af8ce31399d42690ab18186b422fb5012101cc9132660fe1R611-R614
46+
omit_on_fips
4147

4248
# Parameter generation callback is called
4349
if openssl?(3, 0, 0, 0) && !openssl?(3, 0, 0, 6)

0 commit comments

Comments
 (0)