File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,6 @@ def readwrite_loop(context, ssl)
147
147
ssl . close rescue nil
148
148
end
149
149
150
- def java_version
151
- java . lang . System . get_property ( 'java.version' ) [ 2 ] . to_i
152
- end
153
-
154
150
TEST_KEY_RSA1024 = <<-_end_of_pem_
155
151
-----BEGIN RSA PRIVATE KEY-----
156
152
MIICXgIBAAKBgQDLwsSw1ECnPtT+PkOgHhcGA71nwC2/nL85VBGnRqDxOqjVh7Cx
Original file line number Diff line number Diff line change @@ -96,8 +96,6 @@ def test_ssl_version_tlsv1
96
96
end
97
97
98
98
def test_ssl_version_tlsv1_1
99
- return if java_version < 7 # TLS1_1 is not supported by JDK 6
100
-
101
99
ctx_proc = Proc . new do |ctx |
102
100
ctx . ssl_version = "TLSv1_1"
103
101
end
@@ -108,11 +106,9 @@ def test_ssl_version_tlsv1_1
108
106
assert_equal ( "TLSv1.1" , ssl . ssl_version )
109
107
ssl . close
110
108
end
111
- end
109
+ end unless java6? # TLS1_1 is not supported by JDK 6
112
110
113
111
def test_ssl_version_tlsv1_2
114
- return if java_version < 7 # TLS1_2 is not supported by JDK 6
115
-
116
112
ctx_proc = Proc . new do |ctx |
117
113
ctx . ssl_version = "TLSv1_2"
118
114
end
@@ -123,5 +119,6 @@ def test_ssl_version_tlsv1_2
123
119
assert_equal ( "TLSv1.2" , ssl . ssl_version )
124
120
ssl . close
125
121
end
126
- end
122
+ end unless java6? # TLS1_2 is not supported by JDK 6
123
+
127
124
end
You can’t perform that action at this time.
0 commit comments