@@ -645,15 +645,15 @@ def test_sslctx_set_params
645
645
646
646
def test_post_connect_check_with_anon_ciphers
647
647
ctx_proc = -> ctx {
648
- ctx . ssl_version = :TLSv1_2
648
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
649
649
ctx . ciphers = "aNULL"
650
650
ctx . tmp_dh = Fixtures . pkey ( "dh-1" )
651
651
ctx . security_level = 0
652
652
}
653
653
654
654
start_server ( ctx_proc : ctx_proc ) { |port |
655
655
ctx = OpenSSL ::SSL ::SSLContext . new
656
- ctx . ssl_version = :TLSv1_2
656
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
657
657
ctx . ciphers = "aNULL"
658
658
ctx . security_level = 0
659
659
server_connect ( port , ctx ) { |ssl |
@@ -1688,12 +1688,12 @@ def test_sync_close_without_connect
1688
1688
def test_get_ephemeral_key
1689
1689
# kRSA
1690
1690
ctx_proc1 = proc { |ctx |
1691
- ctx . ssl_version = :TLSv1_2
1691
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
1692
1692
ctx . ciphers = "kRSA"
1693
1693
}
1694
1694
start_server ( ctx_proc : ctx_proc1 , ignore_listener_error : true ) do |port |
1695
1695
ctx = OpenSSL ::SSL ::SSLContext . new
1696
- ctx . ssl_version = :TLSv1_2
1696
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
1697
1697
ctx . ciphers = "kRSA"
1698
1698
begin
1699
1699
server_connect ( port , ctx ) { |ssl | assert_nil ssl . tmp_key }
@@ -1704,15 +1704,15 @@ def test_get_ephemeral_key
1704
1704
end
1705
1705
1706
1706
# DHE
1707
- # TODO: How to test this with TLS 1.3?
1707
+ # TODO: SSL_CTX_set1_groups() is required for testing this with TLS 1.3
1708
1708
ctx_proc2 = proc { |ctx |
1709
- ctx . ssl_version = :TLSv1_2
1709
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
1710
1710
ctx . ciphers = "EDH"
1711
1711
ctx . tmp_dh = Fixtures . pkey ( "dh-1" )
1712
1712
}
1713
1713
start_server ( ctx_proc : ctx_proc2 ) do |port |
1714
1714
ctx = OpenSSL ::SSL ::SSLContext . new
1715
- ctx . ssl_version = :TLSv1_2
1715
+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
1716
1716
ctx . ciphers = "EDH"
1717
1717
server_connect ( port , ctx ) { |ssl |
1718
1718
assert_instance_of OpenSSL ::PKey ::DH , ssl . tmp_key
0 commit comments