39
|
1 |
//
|
|
2 |
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
// All rights reserved.
|
|
4 |
// This component and the accompanying materials are made available
|
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
|
6 |
// which accompanies this distribution, and is available
|
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
//
|
|
9 |
// Initial Contributors:
|
|
10 |
// Nokia Corporation - initial contribution.
|
|
11 |
//
|
|
12 |
// Contributors:
|
|
13 |
//
|
|
14 |
// Description:
|
|
15 |
//
|
|
16 |
|
|
17 |
LOAD_SUITE tlstest2
|
|
18 |
|
|
19 |
RUN_SCRIPT z:\TestData\scripts\te_esock_test_unloadesockForced.script
|
|
20 |
//ced z:\testdata\configs\Tls_ethernet.xml
|
|
21 |
RUN_UTILS MkDir c:\private
|
|
22 |
RUN_UTILS MkDir c:\private\10202be9
|
|
23 |
RUN_UTILS MkDir c:\private\10202be9\persists
|
|
24 |
RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre
|
|
25 |
|
|
26 |
RUN_UTILS CopyFile z:\testdata\configs\cccccc00_tls_psk.cre c:\private\10202be9\persists\cccccc00.cre
|
|
27 |
RUN_SCRIPT z:\TestData\scripts\te_esock_test_loadesock.script
|
|
28 |
|
|
29 |
RUN_UTILS MkDir c:\private\101f72a6
|
|
30 |
RUN_UTILS DeleteFile c:\private\101f72a6\CACerts.dat
|
|
31 |
RUN_UTILS MakeReadWrite c:\private\101f72a6\certclients.dat
|
|
32 |
RUN_UTILS DeleteFile c:\private\101f72a6\certclients.dat
|
|
33 |
RUN_UTILS MakeReadWrite c:\private\101f72a6\keys.dat
|
|
34 |
RUN_UTILS DeleteFile c:\private\101f72a6\keys.dat
|
|
35 |
RUN_UTILS CopyFile z:\testdata\configs\tlsprovtestdata\KeyAndCertStore\cacerts.dat c:\private\101f72a6\CACerts.dat
|
|
36 |
RUN_UTILS CopyFile z:\testdata\configs\tlsprovtestdata\KeyAndCertStore\certclients.dat c:\private\101f72a6\certclients.dat
|
|
37 |
RUN_UTILS CopyFile z:\testdata\configs\tlsprovtestdata\KeyAndCertStore\keys.dat c:\private\101f72a6\keys.dat
|
|
38 |
|
|
39 |
|
|
40 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0021
|
|
41 |
//! @SYMTestCaseDesc StartupComms
|
|
42 |
|
|
43 |
START_TESTCASE SEC-TLSP-SMOKE-0021
|
|
44 |
RUN_TEST_STEP 100 tlstest2 StartupCommsStep
|
|
45 |
END_TESTCASE SEC-TLSP-SMOKE-0021
|
|
46 |
|
|
47 |
|
|
48 |
//********************** SEC-TLS-SMOKE : Full TLS handshake tests **********************
|
|
49 |
|
|
50 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0001
|
|
51 |
//! @SYMTestCaseDesc TLS handshake with TLS_PSK_WITH_AES_128_CBC_SHA cipher suit
|
|
52 |
//! (TLS_PSK_WITH_AES_128_CBC_SHA)
|
|
53 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
54 |
//! TLS_PSK_WITH_AES_128_CBC_SHA cipher suit.
|
|
55 |
//!
|
|
56 |
//! @SYMPREQ PREQ1294
|
|
57 |
//! @SYMREQ REQ8632, REQ8637, REQ8638, REQ8639
|
|
58 |
//! @SYMTestPriority Critical
|
|
59 |
//! @SYMTestStatus Implemented
|
|
60 |
//! @SYMTestActions Preconditions:
|
|
61 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
62 |
//! Test Actions:
|
|
63 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
64 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
65 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
66 |
//! • Instruct test client to connect to TLS test server.
|
|
67 |
//! • Set test environment in a way that TLS_PSK_WITH_AES_128_CBC_SHA is set in “ServerHello” message.
|
|
68 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
69 |
//! using the cipher suit specified.
|
|
70 |
//!
|
|
71 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
72 |
//!
|
|
73 |
//! @SYMTestType CIT
|
|
74 |
|
|
75 |
START_TESTCASE SEC-TLSP-SMOKE-0001
|
|
76 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_PSK_WITH_AES_128_CBC_SHA
|
|
77 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_PSK_WITH_AES_128_CBC_SHA_NOCALLBACK
|
|
78 |
END_TESTCASE SEC-TLSP-SMOKE-0001
|
|
79 |
|
|
80 |
|
|
81 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0002
|
|
82 |
//! @SYMTestCaseDesc TLS handshake with TLS_PSK_WITH_3DES_EDE_CBC_SHA cipher suit
|
|
83 |
//! (TLS_PSK_WITH_3DES_EDE_CBC_SHA)
|
|
84 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
85 |
//! TLS_PSK_WITH_3DES_EDE_CBC_SHA suit.
|
|
86 |
//!
|
|
87 |
//! @SYMPREQ PREQ1294
|
|
88 |
//! @SYMREQ REQ8632, REQ8637, REQ8638, REQ8639
|
|
89 |
//! @SYMTestPriority Critical
|
|
90 |
//! @SYMTestStatus Implemented
|
|
91 |
//! @SYMTestActions Preconditions:
|
|
92 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
93 |
//! Test Actions:
|
|
94 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
95 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
96 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
97 |
//! • Instruct test client to connect to TLS test server.
|
|
98 |
//! • Set test environment in a way that TLS_PSK_WITH_3DES_EDE_CBC_SHA is set in “ServerHello” message.
|
|
99 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
100 |
//! using the cipher suit specified.
|
|
101 |
//!
|
|
102 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
103 |
//!
|
|
104 |
//! @SYMTestType CIT
|
|
105 |
|
|
106 |
START_TESTCASE SEC-TLSP-SMOKE-0002
|
|
107 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_PSK_WITH_3DES_EDE_CBC_SHA
|
|
108 |
END_TESTCASE SEC-TLSP-SMOKE-0002
|
|
109 |
|
|
110 |
|
|
111 |
|
|
112 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0003
|
|
113 |
//! @SYMTestCaseDesc TLS handshake with TLS_PSK_WITH_RC4_128_SHA cipher suit
|
|
114 |
//! (TLS_PSK_WITH_RC4_128_SHA)
|
|
115 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
116 |
//! TLS_PSK_WITH_RC4_128_SHA suit.
|
|
117 |
//!
|
|
118 |
//! @SYMPREQ PREQ1294
|
|
119 |
//! @SYMREQ REQ8632, REQ8637, REQ8638, REQ8639, REQ8640
|
|
120 |
//! @SYMTestPriority Critical
|
|
121 |
//! @SYMTestStatus Implemented
|
|
122 |
//! @SYMTestActions Preconditions:
|
|
123 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
124 |
//! Test Actions:
|
|
125 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
126 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
127 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
128 |
//! • Instruct test client to connect to TLS test server.
|
|
129 |
//! • Set test environment in a way that TLS_PSK_WITH_RC4_128_SHA is set in “ServerHello” message.
|
|
130 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
131 |
//! using the cipher suit specified.
|
|
132 |
//!
|
|
133 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
134 |
//!
|
|
135 |
//! @SYMTestType CIT
|
|
136 |
|
|
137 |
START_TESTCASE SEC-TLSP-SMOKE-0003
|
|
138 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_PSK_WITH_RC4_128_SHA
|
|
139 |
END_TESTCASE SEC-TLSP-SMOKE-0003
|
|
140 |
|
|
141 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0004
|
|
142 |
//! @SYMTestCaseDesc TLS handshake with TLS_PSK_WITH_AES_256_CBC_SHA cipher suit
|
|
143 |
//! (TLS_PSK_WITH_AES_256_CBC_SHA)
|
|
144 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
145 |
//! TLS_PSK_WITH_AES_256_CBC_SHA suit.
|
|
146 |
//!
|
|
147 |
//! @SYMPREQ PREQ1294
|
|
148 |
//! @SYMREQ REQ8632, REQ8637, REQ8638, REQ8639, REQ8640
|
|
149 |
//! @SYMTestPriority Critical
|
|
150 |
//! @SYMTestStatus Implemented
|
|
151 |
//! @SYMTestActions Preconditions:
|
|
152 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
153 |
//! Test Actions:
|
|
154 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
155 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
156 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
157 |
//! • Instruct test client to connect to TLS test server.
|
|
158 |
//! • Set test environment in a way that TLS_PSK_WITH_AES_256_CBC_SHA is set in “ServerHello” message.
|
|
159 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
160 |
//! using the cipher suit specified.
|
|
161 |
//!
|
|
162 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
163 |
//!
|
|
164 |
//! @SYMTestType CIT
|
|
165 |
|
|
166 |
START_TESTCASE SEC-TLSP-SMOKE-0004
|
|
167 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_PSK_WITH_AES_256_CBC_SHA
|
|
168 |
END_TESTCASE SEC-TLSP-SMOKE-0004
|
|
169 |
|
|
170 |
|
|
171 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0005
|
|
172 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_EXPORT_WITH_RC4_40_MD5 cipher suit
|
|
173 |
//! (TLS_RSA_EXPORT_WITH_RC4_40_MD5)
|
|
174 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
175 |
//! TLS_RSA_EXPORT_WITH_RC4_40_MD5 cipher suit.
|
|
176 |
//!
|
|
177 |
//! @SYMPREQ PREQ1294
|
|
178 |
//! @SYMREQ REQ8631
|
|
179 |
//! @SYMTestPriority Critical
|
|
180 |
//! @SYMTestStatus Implemented
|
|
181 |
//! @SYMTestActions Preconditions:
|
|
182 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
183 |
//! Test Actions:
|
|
184 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
185 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
186 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
187 |
//! • Instruct test client to connect to TLS test server.
|
|
188 |
//! • Set test environment in a way that TLS_RSA_EXPORT_WITH_RC4_40_MD5 is set in “ServerHello” message.
|
|
189 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
190 |
//! using the cipher suit specified.
|
|
191 |
//!
|
|
192 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
193 |
//!
|
|
194 |
//! @SYMTestType CIT
|
|
195 |
|
|
196 |
START_TESTCASE SEC-TLSP-SMOKE-0005
|
|
197 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_EXPORT_WITH_RC4_40_MD5
|
|
198 |
END_TESTCASE SEC-TLSP-SMOKE-0005
|
|
199 |
|
|
200 |
|
|
201 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0006
|
|
202 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_RC4_128_MD5 cipher suit
|
|
203 |
//! (TLS_RSA_WITH_RC4_128_MD5)
|
|
204 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
205 |
//! TLS_RSA_WITH_RC4_128_MD5 cipher suit.
|
|
206 |
//!
|
|
207 |
//! @SYMPREQ PREQ1294
|
|
208 |
//! @SYMREQ REQ8631
|
|
209 |
//! @SYMTestPriority Critical
|
|
210 |
//! @SYMTestStatus Implemented
|
|
211 |
//! @SYMTestActions Preconditions:
|
|
212 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
213 |
//! Test Actions:
|
|
214 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
215 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
216 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
217 |
//! • Instruct test client to connect to TLS test server.
|
|
218 |
//! • Set test environment in a way that TLS_RSA_WITH_RC4_128_MD5 is set in “ServerHello” message.
|
|
219 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
220 |
//! using the cipher suit specified.
|
|
221 |
//!
|
|
222 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
223 |
//!
|
|
224 |
//! @SYMTestType CIT
|
|
225 |
|
|
226 |
START_TESTCASE SEC-TLSP-SMOKE-0006
|
|
227 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_RC4_128_MD5
|
|
228 |
END_TESTCASE SEC-TLSP-SMOKE-0006
|
|
229 |
|
|
230 |
|
|
231 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0007
|
|
232 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_RC4_128_SHA cipher suit
|
|
233 |
//! (TLS_RSA_WITH_RC4_128_SHA)
|
|
234 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
235 |
//! TLS_RSA_WITH_RC4_128_SHA cipher suit.
|
|
236 |
//!
|
|
237 |
//! @SYMPREQ PREQ1294
|
|
238 |
//! @SYMREQ REQ8631
|
|
239 |
//! @SYMTestPriority Critical
|
|
240 |
//! @SYMTestStatus Implemented
|
|
241 |
//! @SYMTestActions Preconditions:
|
|
242 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
243 |
//! Test Actions:
|
|
244 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
245 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
246 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
247 |
//! • Instruct test client to connect to TLS test server.
|
|
248 |
//! • Set test environment in a way that TLS_RSA_WITH_RC4_128_SHA is set in “ServerHello” message.
|
|
249 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
250 |
//! using the cipher suit specified.
|
|
251 |
//!
|
|
252 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
253 |
//!
|
|
254 |
//! @SYMTestType CIT
|
|
255 |
|
|
256 |
START_TESTCASE SEC-TLSP-SMOKE-0007
|
|
257 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_RC4_128_SHA
|
|
258 |
END_TESTCASE SEC-TLSP-SMOKE-0007
|
|
259 |
|
|
260 |
|
|
261 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0008
|
|
262 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_EXPORT_WITH_DES40_CBC_SHA cipher suit
|
|
263 |
//! (TLS_RSA_EXPORT_WITH_DES40_CBC_SHA)
|
|
264 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
265 |
//! TLS_RSA_EXPORT_WITH_DES40_CBC_SHA cipher suit.
|
|
266 |
//!
|
|
267 |
//! @SYMPREQ PREQ1294
|
|
268 |
//! @SYMREQ REQ8631
|
|
269 |
//! @SYMTestPriority Critical
|
|
270 |
//! @SYMTestStatus Implemented
|
|
271 |
//! @SYMTestActions Preconditions:
|
|
272 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
273 |
//! Test Actions:
|
|
274 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
275 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
276 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
277 |
//! • Instruct test client to connect to TLS test server.
|
|
278 |
//! • Set test environment in a way that TLS_RSA_EXPORT_WITH_DES40_CBC_SHA is set in “ServerHello” message.
|
|
279 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
280 |
//! using the cipher suit specified.
|
|
281 |
//!
|
|
282 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
283 |
//!
|
|
284 |
//! @SYMTestType CIT
|
|
285 |
|
|
286 |
START_TESTCASE SEC-TLSP-SMOKE-0008
|
|
287 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_EXPORT_WITH_DES40_CBC_SHA
|
|
288 |
END_TESTCASE SEC-TLSP-SMOKE-0008
|
|
289 |
|
|
290 |
|
|
291 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0009
|
|
292 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_DES_CBC_SHA cipher suit
|
|
293 |
//! (TLS_RSA_WITH_DES_CBC_SHA)
|
|
294 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
295 |
//! TLS_RSA_WITH_DES_CBC_SHA cipher suit.
|
|
296 |
//!
|
|
297 |
//! @SYMPREQ PREQ1294
|
|
298 |
//! @SYMREQ REQ8631
|
|
299 |
//! @SYMTestPriority Critical
|
|
300 |
//! @SYMTestStatus Implemented
|
|
301 |
//! @SYMTestActions Preconditions:
|
|
302 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
303 |
//! Test Actions:
|
|
304 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
305 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
306 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
307 |
//! • Instruct test client to connect to TLS test server.
|
|
308 |
//! • Set test environment in a way that TLS_RSA_WITH_DES_CBC_SHA is set in “ServerHello” message.
|
|
309 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
310 |
//! using the cipher suit specified.
|
|
311 |
//!
|
|
312 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
313 |
//!
|
|
314 |
//! @SYMTestType CIT
|
|
315 |
|
|
316 |
START_TESTCASE SEC-TLSP-SMOKE-0009
|
|
317 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_DES_CBC_SHA
|
|
318 |
END_TESTCASE SEC-TLSP-SMOKE-0009
|
|
319 |
|
|
320 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0010
|
|
321 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher suit
|
|
322 |
//! (TLS_RSA_WITH_3DES_EDE_CBC_SHA)
|
|
323 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
324 |
//! TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher suit.
|
|
325 |
//!
|
|
326 |
//! @SYMPREQ PREQ1294
|
|
327 |
//! @SYMREQ REQ8631
|
|
328 |
//! @SYMTestPriority Critical
|
|
329 |
//! @SYMTestStatus Implemented
|
|
330 |
//! @SYMTestActions Preconditions:
|
|
331 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
332 |
//! Test Actions:
|
|
333 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
334 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
335 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
336 |
//! • Instruct test client to connect to TLS test server.
|
|
337 |
//! • Set test environment in a way that TLS_RSA_WITH_3DES_EDE_CBC_SHA is set in “ServerHello” message.
|
|
338 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
339 |
//! using the cipher suit specified.
|
|
340 |
//!
|
|
341 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
342 |
//!
|
|
343 |
//! @SYMTestType CIT
|
|
344 |
|
|
345 |
START_TESTCASE SEC-TLSP-SMOKE-0010
|
|
346 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_3DES_EDE_CBC_SHA
|
|
347 |
END_TESTCASE SEC-TLSP-SMOKE-0010
|
|
348 |
|
|
349 |
|
|
350 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0011
|
|
351 |
//! @SYMTestCaseDesc TLS handshake with TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA cipher suit
|
|
352 |
//! (TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA)
|
|
353 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
354 |
//! TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA cipher suit.
|
|
355 |
//!
|
|
356 |
//! @SYMPREQ PREQ1294
|
|
357 |
//! @SYMREQ REQ8631
|
|
358 |
//! @SYMTestPriority Critical
|
|
359 |
//! @SYMTestStatus Implemented
|
|
360 |
//! @SYMTestActions Preconditions:
|
|
361 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
362 |
//! Test Actions:
|
|
363 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
364 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
365 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
366 |
//! • Instruct test client to connect to TLS test server.
|
|
367 |
//! • Set test environment in a way that TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA is set in “ServerHello” message.
|
|
368 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
369 |
//! using the cipher suit specified.
|
|
370 |
//!
|
|
371 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
372 |
//!
|
|
373 |
//! @SYMTestType CIT
|
|
374 |
|
|
375 |
START_TESTCASE SEC-TLSP-SMOKE-0011
|
|
376 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA
|
|
377 |
END_TESTCASE SEC-TLSP-SMOKE-0011
|
|
378 |
|
|
379 |
|
|
380 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0012
|
|
381 |
//! @SYMTestCaseDesc TLS handshake with TLS_DHE_DSS_WITH_DES_CBC_SHA cipher suit
|
|
382 |
//! (TLS_DHE_DSS_WITH_DES_CBC_SHA)
|
|
383 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
384 |
//! TLS_DHE_DSS_WITH_DES_CBC_SHA cipher suit.
|
|
385 |
//!
|
|
386 |
//! @SYMPREQ PREQ1294
|
|
387 |
//! @SYMREQ REQ8631
|
|
388 |
//! @SYMTestPriority Critical
|
|
389 |
//! @SYMTestStatus Implemented
|
|
390 |
//! @SYMTestActions Preconditions:
|
|
391 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
392 |
//! Test Actions:
|
|
393 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
394 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
395 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
396 |
//! • Instruct test client to connect to TLS test server.
|
|
397 |
//! • Set test environment in a way that TLS_DHE_DSS_WITH_DES_CBC_SHA is set in “ServerHello” message.
|
|
398 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
399 |
//! using the cipher suit specified.
|
|
400 |
//!
|
|
401 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
402 |
//!
|
|
403 |
//! @SYMTestType CIT
|
|
404 |
|
|
405 |
START_TESTCASE SEC-TLSP-SMOKE-0012
|
|
406 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_DHE_DSS_WITH_DES_CBC_SHA
|
|
407 |
END_TESTCASE SEC-TLSP-SMOKE-0012
|
|
408 |
|
|
409 |
|
|
410 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0013
|
|
411 |
//! @SYMTestCaseDesc TLS handshake with TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA cipher suit
|
|
412 |
//! (TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA)
|
|
413 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
414 |
//! TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA cipher suit.
|
|
415 |
//!
|
|
416 |
//! @SYMPREQ PREQ1294
|
|
417 |
//! @SYMREQ REQ8631
|
|
418 |
//! @SYMTestPriority Critical
|
|
419 |
//! @SYMTestStatus Implemented
|
|
420 |
//! @SYMTestActions Preconditions:
|
|
421 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
422 |
//! Test Actions:
|
|
423 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
424 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
425 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
426 |
//! • Instruct test client to connect to TLS test server.
|
|
427 |
//! • Set test environment in a way that TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is set in “ServerHello” message.
|
|
428 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
429 |
//! using the cipher suit specified.
|
|
430 |
//!
|
|
431 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
432 |
//!
|
|
433 |
//! @SYMTestType CIT
|
|
434 |
|
|
435 |
START_TESTCASE SEC-TLSP-SMOKE-0013
|
|
436 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
|
|
437 |
END_TESTCASE SEC-TLSP-SMOKE-0013
|
|
438 |
|
|
439 |
|
|
440 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0014
|
|
441 |
//! @SYMTestCaseDesc TLS handshake with TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA cipher suit
|
|
442 |
//! (TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA)
|
|
443 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
444 |
//! TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA cipher suit.
|
|
445 |
//!
|
|
446 |
//! @SYMPREQ PREQ1294
|
|
447 |
//! @SYMREQ REQ8631
|
|
448 |
//! @SYMTestPriority Critical
|
|
449 |
//! @SYMTestStatus Implemented
|
|
450 |
//! @SYMTestActions Preconditions:
|
|
451 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
452 |
//! Test Actions:
|
|
453 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
454 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
455 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
456 |
//! • Instruct test client to connect to TLS test server.
|
|
457 |
//! • Set test environment in a way that TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA is set in “ServerHello” message.
|
|
458 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
459 |
//! using the cipher suit specified.
|
|
460 |
//!
|
|
461 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
462 |
//!
|
|
463 |
//! @SYMTestType CIT
|
|
464 |
|
|
465 |
START_TESTCASE SEC-TLSP-SMOKE-0014
|
|
466 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA
|
|
467 |
END_TESTCASE SEC-TLSP-SMOKE-0014
|
|
468 |
|
|
469 |
|
|
470 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0015
|
|
471 |
//! @SYMTestCaseDesc TLS handshake with TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA cipher suit
|
|
472 |
//! (TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA)
|
|
473 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
474 |
//! TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA cipher suit.
|
|
475 |
//!
|
|
476 |
//! @SYMPREQ PREQ1294
|
|
477 |
//! @SYMREQ REQ8631
|
|
478 |
//! @SYMTestPriority Critical
|
|
479 |
//! @SYMTestStatus Implemented
|
|
480 |
//! @SYMTestActions Preconditions:
|
|
481 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
482 |
//! Test Actions:
|
|
483 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
484 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
485 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
486 |
//! • Instruct test client to connect to TLS test server.
|
|
487 |
//! • Set test environment in a way that TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA is set in “ServerHello” message.
|
|
488 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
489 |
//! using the cipher suit specified.
|
|
490 |
//!
|
|
491 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
492 |
//!
|
|
493 |
//! @SYMTestType CIT
|
|
494 |
|
|
495 |
START_TESTCASE SEC-TLSP-SMOKE-0015
|
|
496 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA
|
|
497 |
END_TESTCASE SEC-TLSP-SMOKE-0015
|
|
498 |
|
|
499 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0016
|
|
500 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_AES_128_CBC_SHA cipher suit
|
|
501 |
//! (TLS_RSA_WITH_AES_128_CBC_SHA)
|
|
502 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
503 |
//! TLS_RSA_WITH_AES_128_CBC_SHA cipher suit.
|
|
504 |
//!
|
|
505 |
//! @SYMPREQ PREQ1294
|
|
506 |
//! @SYMREQ REQ8631
|
|
507 |
//! @SYMTestPriority Critical
|
|
508 |
//! @SYMTestStatus Implemented
|
|
509 |
//! @SYMTestActions Preconditions:
|
|
510 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
511 |
//! Test Actions:
|
|
512 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
513 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
514 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
515 |
//! • Instruct test client to connect to TLS test server.
|
|
516 |
//! • Set test environment in a way that TLS_RSA_WITH_AES_128_CBC_SHA is set in “ServerHello” message.
|
|
517 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
518 |
//! using the cipher suit specified.
|
|
519 |
//!
|
|
520 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
521 |
//!
|
|
522 |
//! @SYMTestType CIT
|
|
523 |
|
|
524 |
START_TESTCASE SEC-TLSP-SMOKE-0016
|
|
525 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_AES_128_CBC_SHA
|
|
526 |
END_TESTCASE SEC-TLSP-SMOKE-0016
|
|
527 |
|
|
528 |
|
|
529 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0017
|
|
530 |
//! @SYMTestCaseDesc TLS handshake with TLS_RSA_WITH_AES_256_CBC_SHA cipher suit
|
|
531 |
//! (TLS_RSA_WITH_AES_256_CBC_SHA)
|
|
532 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
533 |
//! TLS_RSA_WITH_AES_256_CBC_SHA cipher suit.
|
|
534 |
//!
|
|
535 |
//! @SYMPREQ PREQ1294
|
|
536 |
//! @SYMREQ REQ8631
|
|
537 |
//! @SYMTestPriority Critical
|
|
538 |
//! @SYMTestStatus Implemented
|
|
539 |
//! @SYMTestActions Preconditions:
|
|
540 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
541 |
//! Test Actions:
|
|
542 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
543 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
544 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
545 |
//! • Instruct test client to connect to TLS test server.
|
|
546 |
//! • Set test environment in a way that TLS_RSA_WITH_AES_256_CBC_SHA is set in “ServerHello” message.
|
|
547 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
548 |
//! using the cipher suit specified.
|
|
549 |
//!
|
|
550 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
551 |
//!
|
|
552 |
//! @SYMTestType CIT
|
|
553 |
|
|
554 |
START_TESTCASE SEC-TLSP-SMOKE-0017
|
|
555 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_RSA_WITH_AES_256_CBC_SHA
|
|
556 |
END_TESTCASE SEC-TLSP-SMOKE-0017
|
|
557 |
|
|
558 |
|
|
559 |
|
|
560 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0018
|
|
561 |
//! @SYMTestCaseDesc Usage of RFC3546 server name extension
|
|
562 |
//! (SERVER_NAME_EXTENSION)
|
|
563 |
//! @SYMScriptPurpose To ensure that TLS provider can send server name extensions in TLS handshake.
|
|
564 |
//!
|
|
565 |
//! @SYMPREQ PREQ1294
|
|
566 |
//! @SYMREQ REQ8631
|
|
567 |
//! @SYMTestPriority Critical
|
|
568 |
//! @SYMTestStatus Implemented
|
|
569 |
//! @SYMTestActions Preconditions:
|
|
570 |
//! • There is a TLS test server that can perform TLS handshakes using server name extensions.
|
|
571 |
//! Test Actions:
|
|
572 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with
|
|
573 |
//! TLS test server.
|
|
574 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
575 |
//! • Instruct test client to connect to TLS test server.
|
|
576 |
//! • Set test environment in a way that server name extensions is set in “ServerHello” message.
|
|
577 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test
|
|
578 |
//! server using the cipher suit specified.
|
|
579 |
//!
|
|
580 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
581 |
//!
|
|
582 |
//! @SYMTestType CIT
|
|
583 |
|
|
584 |
START_TESTCASE SEC-TLSP-SMOKE-0018
|
|
585 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini single_server_name
|
|
586 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini multiple_server_name
|
|
587 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini server_name_negative
|
|
588 |
END_TESTCASE SEC-TLSP-SMOKE-0018
|
|
589 |
|
|
590 |
|
|
591 |
|
|
592 |
|
|
593 |
|
|
594 |
|
|
595 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0019
|
|
596 |
//! @SYMTestCaseDesc TLS handshake with Null cipher suites
|
|
597 |
//! (TLS_NULL_CIPHER_SMOKE_DEFECT)
|
|
598 |
//! @SYMScriptPurpose To ensure that TLS provider can execute a TLS handshake using a
|
|
599 |
//! TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_MD5 or TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_SHA cipher suites.
|
|
600 |
//!
|
|
601 |
//! @SYMDEF DEF114941
|
|
602 |
//! @SYMTestPriority Critical
|
|
603 |
//! @SYMTestStatus Implemented
|
|
604 |
//! @SYMTestActions Preconditions:
|
|
605 |
//! • There is a TLS test server that can perform TLS handshakes using the cipher suit specific to this test.
|
|
606 |
//! Test Actions:
|
|
607 |
//! • Repeat sequence below including and not including identity hint in server hello message.
|
|
608 |
//! • Launch test client that uses instance of symbian CSecureSocket to negotiate handshake with TLS test server.
|
|
609 |
//! • Set appropriate values to instance of TConnectSettings associated to instance of CSecureSocket.
|
|
610 |
//! • Instruct test client to connect to TLS test server.
|
|
611 |
//! • Set test environment in a way that TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_MD5 is set in “ServerHello” message.
|
|
612 |
//! • Check that instance CSecureSocket was able to execute complete success handshake with test server
|
|
613 |
//! using the cipher suit specified.
|
|
614 |
//! • Repeat test sequence using TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_SHA
|
|
615 |
//!
|
|
616 |
//! @SYMTestExpectedResults • TLS handshake was complete and successful.
|
|
617 |
//!
|
|
618 |
//! @SYMTestType CIT
|
|
619 |
|
|
620 |
START_TESTCASE SEC-TLSP-SMOKE-0019
|
|
621 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_MD5
|
|
622 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_NULL_CIPHER_NOCLIENT_AUT_RSA_SHA
|
|
623 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_NULL_SET_SUITES_ERROR
|
|
624 |
END_TESTCASE SEC-TLSP-SMOKE-0019
|
|
625 |
|
|
626 |
//! @SYMTestCaseID SEC-TLSP-SMOKE-0020
|
|
627 |
//! @SYMTestCaseDesc TLS handshake with no valid ciphersuites
|
|
628 |
//! (TLS_NO_VALID_CIPHERSUITES)
|
|
629 |
//! @SYMScriptPurpose To ensure that SetAvailableCiphersuites fails with the correct code if all supplied ciphersuites are invalid.
|
|
630 |
//!
|
|
631 |
//! @SYMDEF DEF116261
|
|
632 |
//! @SYMTestPriority Critical
|
|
633 |
//! @SYMTestStatus Implemented
|
|
634 |
//! @SYMTestExpectedResults KErrNotSupported
|
|
635 |
//!
|
|
636 |
//! @SYMTestType CIT
|
|
637 |
|
|
638 |
START_TESTCASE SEC-TLSP-SMOKE-0020
|
|
639 |
RUN_TEST_STEP 100 tlstest2 HandShakeStep z:\tlstest2\scripts\tls_smoke.ini TLS_NO_VALID_CIPHERSUITES
|
|
640 |
END_TESTCASE SEC-TLSP-SMOKE-0020
|
|
641 |
|
|
642 |
RUN_UTILS DeleteFile c:\tlsprov_ethernetced.xml
|
|
643 |
|
|
644 |
|
|
645 |
|
|
646 |
|
|
647 |
|