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 , 2 , 1 |
|
40 print The following are NULL ciphers 1,2 |
|
41 print The following are weak crypto only 9,17,20 |
|
42 print The following are AES cipher suites: 0x2F (47), 0x35 (53) |
|
43 print These tests require strong crypto |
|
44 |
|
45 // so some of the following list of test have been disabled tests 1,2,15,17,18,27 |
|
46 // tests 9,11,14 should work with weak crypto |
|
47 // also tests 480 and 580 are disabled as there is no server on the test network |
|
48 |
|
49 print These tests use the SSL servers on ports 543,544,643 an 644 |
|
50 |
|
51 RUN_UTILS CopyFile z:\TestData\Configs\tls_t_secdlg_in.dat c:\t_secdlg_in.dat |
|
52 RUN_UTILS MakeReadWrite c:\t_secdlg_in.dat |
|
53 |
|
54 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
55 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls3.ini |
|
56 TEST_COMPLETE TLS_test_3 |
|
57 |
|
58 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
59 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls4.ini |
|
60 TEST_COMPLETE TLS_test_4 |
|
61 |
|
62 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
63 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls5.ini |
|
64 TEST_COMPLETE TLS_test_5 |
|
65 |
|
66 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
67 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls8.ini |
|
68 TEST_COMPLETE TLS_test_8 |
|
69 |
|
70 # weak crypto |
|
71 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
72 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls9.ini |
|
73 TEST_COMPLETE TLS_test_9 |
|
74 |
|
75 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
76 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\TlsA.ini |
|
77 TEST_COMPLETE TLS_test_A |
|
78 |
|
79 # weak crypto |
|
80 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
81 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls11.ini |
|
82 TEST_COMPLETE TLS_test_11 |
|
83 |
|
84 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
85 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls12.ini |
|
86 TEST_COMPLETE TLS_test_12 |
|
87 |
|
88 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
89 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls13.ini |
|
90 TEST_COMPLETE TLS_test_13 |
|
91 |
|
92 # weak crypto |
|
93 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
94 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls14.ini |
|
95 TEST_COMPLETE TLS_test_14 |
|
96 |
|
97 |
|
98 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
99 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls16.ini |
|
100 TEST_COMPLETE TLS_test_16 |
|
101 |
|
102 #AES |
|
103 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
104 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls2f.ini |
|
105 TEST_COMPLETE TLS_test_2f |
|
106 |
|
107 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
108 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls35.ini |
|
109 TEST_COMPLETE TLS_test_35 |
|
110 |
|
111 // tls test code for DEF022091 |
|
112 // check correct error code when cipher suite id not available |
|
113 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
114 RUN_TEST_STEP 100000, TS_TLS, FailSuiteSelection, z:\testdata\configs\tls4.ini |
|
115 TEST_COMPLETE FailSuiteSelection |
|
116 |
|
117 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
118 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls37.ini |
|
119 TEST_COMPLETE TLS_test_37 |
|
120 |
|
121 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
122 RUN_TEST_STEP 100000, TS_TLS, t_Tls, z:\testdata\configs\Tls37.ini |
|
123 TEST_COMPLETE TLS_test_37 |
|
124 |
|
125 RUN_UTILS Delete c:\t_secdlg_out.dat |
|
126 RUN_SCRIPT Z:\TestData\Scripts\esock_test_stopallinterfaces.script |
|
127 RUN_SCRIPT Z:\TestData\scripts\esock_test_unloadesockForced.script |
|
128 |
|