Skip to content

Commit 0df267e

Browse files
authored
Merge pull request #937 from junaruga/wip/fips-test-ssl
Fix test_ssl.rb in FIPS.
2 parents 9663b09 + ac3559e commit 0df267e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Rakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ Rake::TestTask.new(:test_fips_internal) do |t|
3434
'test/openssl/test_ns_spki.rb',
3535
'test/openssl/test_ocsp.rb',
3636
'test/openssl/test_pkcs12.rb',
37-
'test/openssl/test_ssl.rb',
3837
'test/openssl/test_ts.rb',
3938
'test/openssl/test_x509cert.rb',
4039
'test/openssl/test_x509crl.rb',

test/openssl/test_ssl.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,6 +685,8 @@ def test_sslctx_set_params
685685
end
686686

687687
def test_post_connect_check_with_anon_ciphers
688+
# DH missing the q value on unknown named parameters is not FIPS-approved.
689+
omit_on_fips
688690
omit "AWS-LC does not support DHE ciphersuites" if aws_lc?
689691

690692
ctx_proc = -> ctx {
@@ -1747,6 +1749,9 @@ def test_sync_close_without_connect
17471749
end
17481750

17491751
def test_get_ephemeral_key
1752+
# kRSA is not FIPS-approved.
1753+
omit_on_fips
1754+
17501755
# kRSA
17511756
ctx_proc1 = proc { |ctx|
17521757
ctx.max_version = OpenSSL::SSL::TLS1_2_VERSION
@@ -1863,6 +1868,8 @@ def test_fallback_scsv
18631868
end
18641869

18651870
def test_tmp_dh_callback
1871+
# DH missing the q value on unknown named parameters is not FIPS-approved.
1872+
omit_on_fips
18661873
omit "AWS-LC does not support DHE ciphersuites" if aws_lc?
18671874

18681875
dh = Fixtures.pkey("dh-1")
@@ -2131,6 +2138,8 @@ def test_connect_works_when_setting_dh_callback_to_nil
21312138
end
21322139

21332140
def test_tmp_dh
2141+
# DH missing the q value on unknown named parameters is not FIPS-approved.
2142+
omit_on_fips
21342143
omit "AWS-LC does not support DHE ciphersuites" if aws_lc?
21352144

21362145
dh = Fixtures.pkey("dh-1")

0 commit comments

Comments
 (0)