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 PRINT TLS tests |
|
18 PRINT using a serial NT Ras connection |
|
19 |
|
20 |
|
21 LOAD_SUITE TS_tls.dll |
|
22 |
|
23 PAUSE_AT_END |
|
24 // set up commdb for a serial NT ras connection |
|
25 // which will work with WinTunnel |
|
26 RUN_SCRIPT z:\TestData\scripts\esock_test_unloadesockForced.script |
|
27 //ced z:\testdata\configs\Tls_ntras.cfg ced.log |
|
28 RUN_UTILS MkDir c:\private |
|
29 RUN_UTILS MkDir c:\private\10202be9 |
|
30 RUN_UTILS MkDir c:\private\10202be9\persists |
|
31 RUN_UTILS MakeReadWrite c:\private\10202be9\persists\cccccc00.cre |
|
32 |
|
33 RUN_UTILS CopyFile z:\testdata\configs\cccccc00_ssl_30.cre c:\private\10202be9\persists\cccccc00.cre |
|
34 RUN_SCRIPT z:\TestData\scripts\esock_test_loadesock.script |
|
35 |
|
36 //run_utils copy z:\testdata\configs\ssl\*.* c:\system\data\ |
|
37 |
|
38 print Note the following ciphers suites are supported by TLS |
|
39 print 4, 5, 10, 22, 19, 18, 9, 17, 20, 8, 3 |
|
40 print The following are weak crypto only 9,17,20 |
|
41 print The following are AES cipher suites: 0x2F (47), 0x35 (53) |
|
42 print These tests require strong crypto |
|
43 |
|
44 // so some of the following list of test have been disabled tests 1,2,15,17,18,27 |
|
45 // tests 9,11,14 should work with weak crypto |
|
46 // also tests 480 and 580 are disabled as there is no server on the test network |
|
47 |
|
48 print These tests use the SSL servers on ports 543,544,643 an 644 |
|
49 |
|
50 RUN_UTILS CopyFile z:\TestData\Configs\tls_t_secdlg_in.dat c:\t_secdlg_in.dat |
|
51 RUN_UTILS MakeReadWrite c:\t_secdlg_in.dat |
|
52 |
|
53 // dialog mode test |
|
54 RUN_TEST_STEP 100000, TS_TLS, t_tls_DialogMode |
|
55 TEST_COMPLETE TLS_test_19 |
|
56 |
|
57 |
|
58 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
59 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls19.ini |
|
60 TEST_COMPLETE TLS_test_19 |
|
61 |
|
62 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
63 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls20.ini |
|
64 TEST_COMPLETE TLS_test_20 |
|
65 |
|
66 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
67 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls5b.ini |
|
68 TEST_COMPLETE TLS_test_5b |
|
69 |
|
70 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
71 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls21.ini |
|
72 TEST_COMPLETE TLS_test_21 |
|
73 |
|
74 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
75 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls22.ini |
|
76 TEST_COMPLETE TLS_test_22 |
|
77 |
|
78 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
79 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tlssa.ini |
|
80 TEST_COMPLETE TLS_test_SSLA |
|
81 |
|
82 # weak crypto |
|
83 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
84 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls23.ini |
|
85 TEST_COMPLETE TLS_test_23 |
|
86 |
|
87 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
88 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls24.ini |
|
89 TEST_COMPLETE TLS_test_24 |
|
90 |
|
91 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
92 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls25.ini |
|
93 TEST_COMPLETE TLS_test_25 |
|
94 |
|
95 # weak crypto |
|
96 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
97 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls26.ini |
|
98 TEST_COMPLETE TLS_test_26 |
|
99 |
|
100 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
101 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls28.ini |
|
102 TEST_COMPLETE TLS_test_28 |
|
103 |
|
104 // Following Test fails as CSecureSocketLibraryLoader::OpenWithIdL ignores the Commsdat field |
|
105 //RUN_UTILS Delete c:\t_secdlg_out.dat |
|
106 //RUN_TEST_STEP 100000, TS_TLS, tls_TestSection2_1 |
|
107 //TEST_COMPLETE tls_TestSection2_1 |
|
108 |
|
109 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
110 RUN_TEST_STEP 100000, TS_TLS, tls_TestSection3_1 |
|
111 TEST_COMPLETE tls_TestSection3_1 |
|
112 |
|
113 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
114 RUN_TEST_STEP 100000, TS_TLS, OpenConnection, z:\testdata\configs\Tls28.ini |
|
115 RUN_TEST_STEP 100000, TS_TLS, oldgetOpts, z:\testdata\configs\Tls28.ini |
|
116 RUN_TEST_STEP 100000, TS_TLS, CloseConnection, z:\testdata\configs\Tls28.ini |
|
117 TEST_COMPLETE oldgetOpts |
|
118 |
|
119 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
120 RUN_TEST_STEP 100000, TS_TLS, renegotiate, z:\testdata\configs\Tls28.ini |
|
121 TEST_COMPLETE RenegotiateTest |
|
122 |
|
123 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
124 RUN_TEST_STEP 100000, TS_TLS, CancelRecv, z:\testdata\configs\Tls28.ini |
|
125 TEST_COMPLETE CancelRecvTest |
|
126 |
|
127 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
128 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls36.ini |
|
129 TEST_COMPLETE TLS_test_36 |
|
130 |
|
131 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
132 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls38.ini |
|
133 TEST_COMPLETE TLS_test_38 |
|
134 |
|
135 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
136 RUN_SCRIPT Z:\TestData\Scripts\esock_test_stopallinterfaces.script |
|
137 RUN_SCRIPT Z:\TestData\scripts\esock_test_unloadesockForced.script |
|
138 |
|