@@ -645,15 +645,15 @@ def test_sslctx_set_params
645645
646646 def test_post_connect_check_with_anon_ciphers
647647 ctx_proc = -> ctx {
648- ctx . ssl_version = :TLSv1_2
648+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
649649 ctx . ciphers = "aNULL"
650650 ctx . tmp_dh = Fixtures . pkey ( "dh-1" )
651651 ctx . security_level = 0
652652 }
653653
654654 start_server ( ctx_proc : ctx_proc ) { |port |
655655 ctx = OpenSSL ::SSL ::SSLContext . new
656- ctx . ssl_version = :TLSv1_2
656+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
657657 ctx . ciphers = "aNULL"
658658 ctx . security_level = 0
659659 server_connect ( port , ctx ) { |ssl |
@@ -1688,12 +1688,12 @@ def test_sync_close_without_connect
16881688 def test_get_ephemeral_key
16891689 # kRSA
16901690 ctx_proc1 = proc { |ctx |
1691- ctx . ssl_version = :TLSv1_2
1691+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
16921692 ctx . ciphers = "kRSA"
16931693 }
16941694 start_server ( ctx_proc : ctx_proc1 , ignore_listener_error : true ) do |port |
16951695 ctx = OpenSSL ::SSL ::SSLContext . new
1696- ctx . ssl_version = :TLSv1_2
1696+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
16971697 ctx . ciphers = "kRSA"
16981698 begin
16991699 server_connect ( port , ctx ) { |ssl | assert_nil ssl . tmp_key }
@@ -1704,15 +1704,15 @@ def test_get_ephemeral_key
17041704 end
17051705
17061706 # 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
17081708 ctx_proc2 = proc { |ctx |
1709- ctx . ssl_version = :TLSv1_2
1709+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
17101710 ctx . ciphers = "EDH"
17111711 ctx . tmp_dh = Fixtures . pkey ( "dh-1" )
17121712 }
17131713 start_server ( ctx_proc : ctx_proc2 ) do |port |
17141714 ctx = OpenSSL ::SSL ::SSLContext . new
1715- ctx . ssl_version = :TLSv1_2
1715+ ctx . max_version = OpenSSL :: SSL :: TLS1_2_VERSION
17161716 ctx . ciphers = "EDH"
17171717 server_connect ( port , ctx ) { |ssl |
17181718 assert_instance_of OpenSSL ::PKey ::DH , ssl . tmp_key
0 commit comments