1e1051a39Sopenharmony_ci# Generated with generate_ssl_tests.pl
2e1051a39Sopenharmony_ci
3e1051a39Sopenharmony_cinum_tests = 9
4e1051a39Sopenharmony_ci
5e1051a39Sopenharmony_citest-0 = 0-SNI-switch-context
6e1051a39Sopenharmony_citest-1 = 1-SNI-keep-context
7e1051a39Sopenharmony_citest-2 = 2-SNI-no-server-support
8e1051a39Sopenharmony_citest-3 = 3-SNI-no-client-support
9e1051a39Sopenharmony_citest-4 = 4-SNI-bad-sni-ignore-mismatch
10e1051a39Sopenharmony_citest-5 = 5-SNI-bad-sni-reject-mismatch
11e1051a39Sopenharmony_citest-6 = 6-SNI-bad-clienthello-sni-ignore-mismatch
12e1051a39Sopenharmony_citest-7 = 7-SNI-bad-clienthello-sni-reject-mismatch
13e1051a39Sopenharmony_citest-8 = 8-SNI-clienthello-disable-v12
14e1051a39Sopenharmony_ci# ===========================================================
15e1051a39Sopenharmony_ci
16e1051a39Sopenharmony_ci[0-SNI-switch-context]
17e1051a39Sopenharmony_cissl_conf = 0-SNI-switch-context-ssl
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_ci[0-SNI-switch-context-ssl]
20e1051a39Sopenharmony_ciserver = 0-SNI-switch-context-server
21e1051a39Sopenharmony_ciclient = 0-SNI-switch-context-client
22e1051a39Sopenharmony_ciserver2 = 0-SNI-switch-context-server
23e1051a39Sopenharmony_ci
24e1051a39Sopenharmony_ci[0-SNI-switch-context-server]
25e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
26e1051a39Sopenharmony_ciCipherString = DEFAULT
27e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
28e1051a39Sopenharmony_ci
29e1051a39Sopenharmony_ci[0-SNI-switch-context-client]
30e1051a39Sopenharmony_ciCipherString = DEFAULT
31e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
32e1051a39Sopenharmony_ciVerifyMode = Peer
33e1051a39Sopenharmony_ci
34e1051a39Sopenharmony_ci[test-0]
35e1051a39Sopenharmony_ciExpectedResult = Success
36e1051a39Sopenharmony_ciExpectedServerName = server2
37e1051a39Sopenharmony_ciserver = 0-SNI-switch-context-server-extra
38e1051a39Sopenharmony_ciserver2 = 0-SNI-switch-context-server-extra
39e1051a39Sopenharmony_ciclient = 0-SNI-switch-context-client-extra
40e1051a39Sopenharmony_ci
41e1051a39Sopenharmony_ci[0-SNI-switch-context-server-extra]
42e1051a39Sopenharmony_ciServerNameCallback = IgnoreMismatch
43e1051a39Sopenharmony_ci
44e1051a39Sopenharmony_ci[0-SNI-switch-context-client-extra]
45e1051a39Sopenharmony_ciServerName = server2
46e1051a39Sopenharmony_ci
47e1051a39Sopenharmony_ci
48e1051a39Sopenharmony_ci# ===========================================================
49e1051a39Sopenharmony_ci
50e1051a39Sopenharmony_ci[1-SNI-keep-context]
51e1051a39Sopenharmony_cissl_conf = 1-SNI-keep-context-ssl
52e1051a39Sopenharmony_ci
53e1051a39Sopenharmony_ci[1-SNI-keep-context-ssl]
54e1051a39Sopenharmony_ciserver = 1-SNI-keep-context-server
55e1051a39Sopenharmony_ciclient = 1-SNI-keep-context-client
56e1051a39Sopenharmony_ciserver2 = 1-SNI-keep-context-server
57e1051a39Sopenharmony_ci
58e1051a39Sopenharmony_ci[1-SNI-keep-context-server]
59e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
60e1051a39Sopenharmony_ciCipherString = DEFAULT
61e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
62e1051a39Sopenharmony_ci
63e1051a39Sopenharmony_ci[1-SNI-keep-context-client]
64e1051a39Sopenharmony_ciCipherString = DEFAULT
65e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
66e1051a39Sopenharmony_ciVerifyMode = Peer
67e1051a39Sopenharmony_ci
68e1051a39Sopenharmony_ci[test-1]
69e1051a39Sopenharmony_ciExpectedResult = Success
70e1051a39Sopenharmony_ciExpectedServerName = server1
71e1051a39Sopenharmony_ciserver = 1-SNI-keep-context-server-extra
72e1051a39Sopenharmony_ciserver2 = 1-SNI-keep-context-server-extra
73e1051a39Sopenharmony_ciclient = 1-SNI-keep-context-client-extra
74e1051a39Sopenharmony_ci
75e1051a39Sopenharmony_ci[1-SNI-keep-context-server-extra]
76e1051a39Sopenharmony_ciServerNameCallback = IgnoreMismatch
77e1051a39Sopenharmony_ci
78e1051a39Sopenharmony_ci[1-SNI-keep-context-client-extra]
79e1051a39Sopenharmony_ciServerName = server1
80e1051a39Sopenharmony_ci
81e1051a39Sopenharmony_ci
82e1051a39Sopenharmony_ci# ===========================================================
83e1051a39Sopenharmony_ci
84e1051a39Sopenharmony_ci[2-SNI-no-server-support]
85e1051a39Sopenharmony_cissl_conf = 2-SNI-no-server-support-ssl
86e1051a39Sopenharmony_ci
87e1051a39Sopenharmony_ci[2-SNI-no-server-support-ssl]
88e1051a39Sopenharmony_ciserver = 2-SNI-no-server-support-server
89e1051a39Sopenharmony_ciclient = 2-SNI-no-server-support-client
90e1051a39Sopenharmony_ci
91e1051a39Sopenharmony_ci[2-SNI-no-server-support-server]
92e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
93e1051a39Sopenharmony_ciCipherString = DEFAULT
94e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
95e1051a39Sopenharmony_ci
96e1051a39Sopenharmony_ci[2-SNI-no-server-support-client]
97e1051a39Sopenharmony_ciCipherString = DEFAULT
98e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
99e1051a39Sopenharmony_ciVerifyMode = Peer
100e1051a39Sopenharmony_ci
101e1051a39Sopenharmony_ci[test-2]
102e1051a39Sopenharmony_ciExpectedResult = Success
103e1051a39Sopenharmony_ciclient = 2-SNI-no-server-support-client-extra
104e1051a39Sopenharmony_ci
105e1051a39Sopenharmony_ci[2-SNI-no-server-support-client-extra]
106e1051a39Sopenharmony_ciServerName = server1
107e1051a39Sopenharmony_ci
108e1051a39Sopenharmony_ci
109e1051a39Sopenharmony_ci# ===========================================================
110e1051a39Sopenharmony_ci
111e1051a39Sopenharmony_ci[3-SNI-no-client-support]
112e1051a39Sopenharmony_cissl_conf = 3-SNI-no-client-support-ssl
113e1051a39Sopenharmony_ci
114e1051a39Sopenharmony_ci[3-SNI-no-client-support-ssl]
115e1051a39Sopenharmony_ciserver = 3-SNI-no-client-support-server
116e1051a39Sopenharmony_ciclient = 3-SNI-no-client-support-client
117e1051a39Sopenharmony_ciserver2 = 3-SNI-no-client-support-server
118e1051a39Sopenharmony_ci
119e1051a39Sopenharmony_ci[3-SNI-no-client-support-server]
120e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
121e1051a39Sopenharmony_ciCipherString = DEFAULT
122e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
123e1051a39Sopenharmony_ci
124e1051a39Sopenharmony_ci[3-SNI-no-client-support-client]
125e1051a39Sopenharmony_ciCipherString = DEFAULT
126e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
127e1051a39Sopenharmony_ciVerifyMode = Peer
128e1051a39Sopenharmony_ci
129e1051a39Sopenharmony_ci[test-3]
130e1051a39Sopenharmony_ciExpectedResult = Success
131e1051a39Sopenharmony_ciExpectedServerName = server1
132e1051a39Sopenharmony_ciserver = 3-SNI-no-client-support-server-extra
133e1051a39Sopenharmony_ciserver2 = 3-SNI-no-client-support-server-extra
134e1051a39Sopenharmony_ci
135e1051a39Sopenharmony_ci[3-SNI-no-client-support-server-extra]
136e1051a39Sopenharmony_ciServerNameCallback = IgnoreMismatch
137e1051a39Sopenharmony_ci
138e1051a39Sopenharmony_ci
139e1051a39Sopenharmony_ci# ===========================================================
140e1051a39Sopenharmony_ci
141e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch]
142e1051a39Sopenharmony_cissl_conf = 4-SNI-bad-sni-ignore-mismatch-ssl
143e1051a39Sopenharmony_ci
144e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch-ssl]
145e1051a39Sopenharmony_ciserver = 4-SNI-bad-sni-ignore-mismatch-server
146e1051a39Sopenharmony_ciclient = 4-SNI-bad-sni-ignore-mismatch-client
147e1051a39Sopenharmony_ciserver2 = 4-SNI-bad-sni-ignore-mismatch-server
148e1051a39Sopenharmony_ci
149e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch-server]
150e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
151e1051a39Sopenharmony_ciCipherString = DEFAULT
152e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
153e1051a39Sopenharmony_ci
154e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch-client]
155e1051a39Sopenharmony_ciCipherString = DEFAULT
156e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
157e1051a39Sopenharmony_ciVerifyMode = Peer
158e1051a39Sopenharmony_ci
159e1051a39Sopenharmony_ci[test-4]
160e1051a39Sopenharmony_ciExpectedResult = Success
161e1051a39Sopenharmony_ciExpectedServerName = server1
162e1051a39Sopenharmony_ciserver = 4-SNI-bad-sni-ignore-mismatch-server-extra
163e1051a39Sopenharmony_ciserver2 = 4-SNI-bad-sni-ignore-mismatch-server-extra
164e1051a39Sopenharmony_ciclient = 4-SNI-bad-sni-ignore-mismatch-client-extra
165e1051a39Sopenharmony_ci
166e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch-server-extra]
167e1051a39Sopenharmony_ciServerNameCallback = IgnoreMismatch
168e1051a39Sopenharmony_ci
169e1051a39Sopenharmony_ci[4-SNI-bad-sni-ignore-mismatch-client-extra]
170e1051a39Sopenharmony_ciServerName = invalid
171e1051a39Sopenharmony_ci
172e1051a39Sopenharmony_ci
173e1051a39Sopenharmony_ci# ===========================================================
174e1051a39Sopenharmony_ci
175e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch]
176e1051a39Sopenharmony_cissl_conf = 5-SNI-bad-sni-reject-mismatch-ssl
177e1051a39Sopenharmony_ci
178e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch-ssl]
179e1051a39Sopenharmony_ciserver = 5-SNI-bad-sni-reject-mismatch-server
180e1051a39Sopenharmony_ciclient = 5-SNI-bad-sni-reject-mismatch-client
181e1051a39Sopenharmony_ciserver2 = 5-SNI-bad-sni-reject-mismatch-server
182e1051a39Sopenharmony_ci
183e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch-server]
184e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
185e1051a39Sopenharmony_ciCipherString = DEFAULT
186e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
187e1051a39Sopenharmony_ci
188e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch-client]
189e1051a39Sopenharmony_ciCipherString = DEFAULT
190e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
191e1051a39Sopenharmony_ciVerifyMode = Peer
192e1051a39Sopenharmony_ci
193e1051a39Sopenharmony_ci[test-5]
194e1051a39Sopenharmony_ciExpectedResult = ServerFail
195e1051a39Sopenharmony_ciExpectedServerAlert = UnrecognizedName
196e1051a39Sopenharmony_ciserver = 5-SNI-bad-sni-reject-mismatch-server-extra
197e1051a39Sopenharmony_ciserver2 = 5-SNI-bad-sni-reject-mismatch-server-extra
198e1051a39Sopenharmony_ciclient = 5-SNI-bad-sni-reject-mismatch-client-extra
199e1051a39Sopenharmony_ci
200e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch-server-extra]
201e1051a39Sopenharmony_ciServerNameCallback = RejectMismatch
202e1051a39Sopenharmony_ci
203e1051a39Sopenharmony_ci[5-SNI-bad-sni-reject-mismatch-client-extra]
204e1051a39Sopenharmony_ciServerName = invalid
205e1051a39Sopenharmony_ci
206e1051a39Sopenharmony_ci
207e1051a39Sopenharmony_ci# ===========================================================
208e1051a39Sopenharmony_ci
209e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch]
210e1051a39Sopenharmony_cissl_conf = 6-SNI-bad-clienthello-sni-ignore-mismatch-ssl
211e1051a39Sopenharmony_ci
212e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch-ssl]
213e1051a39Sopenharmony_ciserver = 6-SNI-bad-clienthello-sni-ignore-mismatch-server
214e1051a39Sopenharmony_ciclient = 6-SNI-bad-clienthello-sni-ignore-mismatch-client
215e1051a39Sopenharmony_ciserver2 = 6-SNI-bad-clienthello-sni-ignore-mismatch-server
216e1051a39Sopenharmony_ci
217e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch-server]
218e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
219e1051a39Sopenharmony_ciCipherString = DEFAULT
220e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
221e1051a39Sopenharmony_ci
222e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch-client]
223e1051a39Sopenharmony_ciCipherString = DEFAULT
224e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
225e1051a39Sopenharmony_ciVerifyMode = Peer
226e1051a39Sopenharmony_ci
227e1051a39Sopenharmony_ci[test-6]
228e1051a39Sopenharmony_ciExpectedResult = Success
229e1051a39Sopenharmony_ciExpectedServerName = server1
230e1051a39Sopenharmony_ciserver = 6-SNI-bad-clienthello-sni-ignore-mismatch-server-extra
231e1051a39Sopenharmony_ciserver2 = 6-SNI-bad-clienthello-sni-ignore-mismatch-server-extra
232e1051a39Sopenharmony_ciclient = 6-SNI-bad-clienthello-sni-ignore-mismatch-client-extra
233e1051a39Sopenharmony_ci
234e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch-server-extra]
235e1051a39Sopenharmony_ciServerNameCallback = ClientHelloIgnoreMismatch
236e1051a39Sopenharmony_ci
237e1051a39Sopenharmony_ci[6-SNI-bad-clienthello-sni-ignore-mismatch-client-extra]
238e1051a39Sopenharmony_ciServerName = invalid
239e1051a39Sopenharmony_ci
240e1051a39Sopenharmony_ci
241e1051a39Sopenharmony_ci# ===========================================================
242e1051a39Sopenharmony_ci
243e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch]
244e1051a39Sopenharmony_cissl_conf = 7-SNI-bad-clienthello-sni-reject-mismatch-ssl
245e1051a39Sopenharmony_ci
246e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch-ssl]
247e1051a39Sopenharmony_ciserver = 7-SNI-bad-clienthello-sni-reject-mismatch-server
248e1051a39Sopenharmony_ciclient = 7-SNI-bad-clienthello-sni-reject-mismatch-client
249e1051a39Sopenharmony_ciserver2 = 7-SNI-bad-clienthello-sni-reject-mismatch-server
250e1051a39Sopenharmony_ci
251e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch-server]
252e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
253e1051a39Sopenharmony_ciCipherString = DEFAULT
254e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
255e1051a39Sopenharmony_ci
256e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch-client]
257e1051a39Sopenharmony_ciCipherString = DEFAULT
258e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
259e1051a39Sopenharmony_ciVerifyMode = Peer
260e1051a39Sopenharmony_ci
261e1051a39Sopenharmony_ci[test-7]
262e1051a39Sopenharmony_ciExpectedResult = ServerFail
263e1051a39Sopenharmony_ciExpectedServerAlert = UnrecognizedName
264e1051a39Sopenharmony_ciserver = 7-SNI-bad-clienthello-sni-reject-mismatch-server-extra
265e1051a39Sopenharmony_ciserver2 = 7-SNI-bad-clienthello-sni-reject-mismatch-server-extra
266e1051a39Sopenharmony_ciclient = 7-SNI-bad-clienthello-sni-reject-mismatch-client-extra
267e1051a39Sopenharmony_ci
268e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch-server-extra]
269e1051a39Sopenharmony_ciServerNameCallback = ClientHelloRejectMismatch
270e1051a39Sopenharmony_ci
271e1051a39Sopenharmony_ci[7-SNI-bad-clienthello-sni-reject-mismatch-client-extra]
272e1051a39Sopenharmony_ciServerName = invalid
273e1051a39Sopenharmony_ci
274e1051a39Sopenharmony_ci
275e1051a39Sopenharmony_ci# ===========================================================
276e1051a39Sopenharmony_ci
277e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12]
278e1051a39Sopenharmony_cissl_conf = 8-SNI-clienthello-disable-v12-ssl
279e1051a39Sopenharmony_ci
280e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12-ssl]
281e1051a39Sopenharmony_ciserver = 8-SNI-clienthello-disable-v12-server
282e1051a39Sopenharmony_ciclient = 8-SNI-clienthello-disable-v12-client
283e1051a39Sopenharmony_ciserver2 = 8-SNI-clienthello-disable-v12-server
284e1051a39Sopenharmony_ci
285e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12-server]
286e1051a39Sopenharmony_ciCertificate = ${ENV::TEST_CERTS_DIR}/servercert.pem
287e1051a39Sopenharmony_ciCipherString = DEFAULT:@SECLEVEL=0
288e1051a39Sopenharmony_ciPrivateKey = ${ENV::TEST_CERTS_DIR}/serverkey.pem
289e1051a39Sopenharmony_ci
290e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12-client]
291e1051a39Sopenharmony_ciCipherString = DEFAULT:@SECLEVEL=0
292e1051a39Sopenharmony_ciVerifyCAFile = ${ENV::TEST_CERTS_DIR}/rootcert.pem
293e1051a39Sopenharmony_ciVerifyMode = Peer
294e1051a39Sopenharmony_ci
295e1051a39Sopenharmony_ci[test-8]
296e1051a39Sopenharmony_ciExpectedProtocol = TLSv1.1
297e1051a39Sopenharmony_ciExpectedServerName = server2
298e1051a39Sopenharmony_ciserver = 8-SNI-clienthello-disable-v12-server-extra
299e1051a39Sopenharmony_ciserver2 = 8-SNI-clienthello-disable-v12-server-extra
300e1051a39Sopenharmony_ciclient = 8-SNI-clienthello-disable-v12-client-extra
301e1051a39Sopenharmony_ci
302e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12-server-extra]
303e1051a39Sopenharmony_ciServerNameCallback = ClientHelloNoV12
304e1051a39Sopenharmony_ci
305e1051a39Sopenharmony_ci[8-SNI-clienthello-disable-v12-client-extra]
306e1051a39Sopenharmony_ciServerName = server2
307e1051a39Sopenharmony_ci
308e1051a39Sopenharmony_ci
309