equal
deleted
inserted
replaced
78 }; |
78 }; |
79 |
79 |
80 // (D)TLS ProtocolVersion array for (D)TLS 1.2 and previous versions. |
80 // (D)TLS ProtocolVersion array for (D)TLS 1.2 and previous versions. |
81 static final ProtocolVersion[] PROTOCOLS_TO_12 = new ProtocolVersion[] { |
81 static final ProtocolVersion[] PROTOCOLS_TO_12 = new ProtocolVersion[] { |
82 TLS12, TLS11, TLS10, SSL30, DTLS12, DTLS10 |
82 TLS12, TLS11, TLS10, SSL30, DTLS12, DTLS10 |
83 }; |
83 }; |
84 |
84 |
85 // (D)TLS ProtocolVersion array for (D)TLS 1.3 and previous versions. |
85 // (D)TLS ProtocolVersion array for (D)TLS 1.3 and previous versions. |
86 static final ProtocolVersion[] PROTOCOLS_TO_13 = new ProtocolVersion[] { |
86 static final ProtocolVersion[] PROTOCOLS_TO_13 = new ProtocolVersion[] { |
87 TLS13, TLS12, TLS11, TLS10, SSL30, DTLS13, DTLS12, DTLS10 |
87 TLS13, TLS12, TLS11, TLS10, SSL30, DTLS13, DTLS12, DTLS10 |
88 }; |
88 }; |
129 |
129 |
130 // (D)TLS ProtocolVersion array for TSL 1.0/1.1/1.2 and DTLS 1.0/1.2. |
130 // (D)TLS ProtocolVersion array for TSL 1.0/1.1/1.2 and DTLS 1.0/1.2. |
131 static final ProtocolVersion[] PROTOCOLS_10_12 = new ProtocolVersion[] { |
131 static final ProtocolVersion[] PROTOCOLS_10_12 = new ProtocolVersion[] { |
132 TLS12, TLS11, TLS10, DTLS12, DTLS10 |
132 TLS12, TLS11, TLS10, DTLS12, DTLS10 |
133 }; |
133 }; |
|
134 |
|
135 // TLS ProtocolVersion array for TLS 1.2 and previous versions. |
|
136 static final ProtocolVersion[] PROTOCOLS_TO_T12 = new ProtocolVersion[] { |
|
137 TLS12, TLS11, TLS10, SSL30 |
|
138 }; |
|
139 |
|
140 // TLS ProtocolVersion array for TLS 1.1 and previous versions. |
|
141 static final ProtocolVersion[] PROTOCOLS_TO_T11 = new ProtocolVersion[] { |
|
142 TLS11, TLS10, SSL30 |
|
143 }; |
|
144 |
|
145 // TLS ProtocolVersion array for TLS 1.0 and previous versions. |
|
146 static final ProtocolVersion[] PROTOCOLS_TO_T10 = new ProtocolVersion[] { |
|
147 TLS10, SSL30 |
|
148 }; |
134 |
149 |
135 // Empty ProtocolVersion array |
150 // Empty ProtocolVersion array |
136 static final ProtocolVersion[] PROTOCOLS_EMPTY = new ProtocolVersion[0]; |
151 static final ProtocolVersion[] PROTOCOLS_EMPTY = new ProtocolVersion[0]; |
137 |
152 |
138 private ProtocolVersion(int id, String name, boolean isDTLS) { |
153 private ProtocolVersion(int id, String name, boolean isDTLS) { |