Fix from stable branch.
Dr. Stephen Henson
15 years ago
0 | @echo off | |
1 | ||
2 | set test=..\ms | |
3 | set opath=%PATH% | |
4 | PATH=..\ms;%PATH% | |
5 | set OPENSSL_CONF=..\apps\openssl.cnf | |
6 | ||
7 | rem run this from inside the bin directory | |
8 | ||
9 | echo rsa_test | |
10 | rsa_test | |
11 | if errorlevel 1 goto done | |
12 | ||
13 | echo destest | |
14 | destest | |
15 | if errorlevel 1 goto done | |
16 | ||
17 | echo ideatest | |
18 | ideatest | |
19 | if errorlevel 1 goto done | |
20 | ||
21 | echo bftest | |
22 | bftest | |
23 | if errorlevel 1 goto done | |
24 | ||
25 | echo shatest | |
26 | shatest | |
27 | if errorlevel 1 goto done | |
28 | ||
29 | echo sha1test | |
30 | sha1test | |
31 | if errorlevel 1 goto done | |
32 | ||
33 | echo md5test | |
34 | md5test | |
35 | if errorlevel 1 goto done | |
36 | ||
37 | echo md2test | |
38 | md2test | |
39 | if errorlevel 1 goto done | |
40 | ||
41 | echo rc2test | |
42 | rc2test | |
43 | if errorlevel 1 goto done | |
44 | ||
45 | echo rc4test | |
46 | rc4test | |
47 | if errorlevel 1 goto done | |
48 | ||
49 | echo randtest | |
50 | randtest | |
51 | if errorlevel 1 goto done | |
52 | ||
53 | echo dhtest | |
54 | dhtest | |
55 | if errorlevel 1 goto done | |
56 | ||
57 | echo exptest | |
58 | exptest | |
59 | if errorlevel 1 goto done | |
60 | ||
61 | echo dsatest | |
62 | dsatest | |
63 | if errorlevel 1 goto done | |
64 | ||
65 | echo ectest | |
66 | ectest | |
67 | if errorlevel 1 goto done | |
68 | ||
69 | echo testenc | |
70 | call %test%\testenc openssl | |
71 | if errorlevel 1 goto done | |
72 | ||
73 | echo testpem | |
74 | call %test%\testpem openssl | |
75 | if errorlevel 1 goto done | |
76 | ||
77 | echo verify | |
78 | copy ..\certs\*.pem cert.tmp >nul | |
79 | openssl verify -CAfile cert.tmp ..\certs\*.pem | |
80 | ||
81 | echo testss | |
82 | call %test%\testss openssl | |
83 | if errorlevel 1 goto done | |
84 | ||
85 | set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss | |
86 | ||
87 | echo test sslv2 | |
88 | ssltest -ssl2 | |
89 | if errorlevel 1 goto done | |
90 | ||
91 | echo test sslv2 with server authentication | |
92 | %SSL_TEST% -ssl2 -server_auth | |
93 | if errorlevel 1 goto done | |
94 | ||
95 | echo test sslv2 with client authentication | |
96 | %SSL_TEST% -ssl2 -client_auth | |
97 | if errorlevel 1 goto done | |
98 | ||
99 | echo test sslv2 with both client and server authentication | |
100 | %SSL_TEST% -ssl2 -server_auth -client_auth | |
101 | if errorlevel 1 goto done | |
102 | ||
103 | echo test sslv3 | |
104 | ssltest -ssl3 | |
105 | if errorlevel 1 goto done | |
106 | ||
107 | echo test sslv3 with server authentication | |
108 | %SSL_TEST% -ssl3 -server_auth | |
109 | if errorlevel 1 goto done | |
110 | ||
111 | echo test sslv3 with client authentication | |
112 | %SSL_TEST% -ssl3 -client_auth | |
113 | if errorlevel 1 goto done | |
114 | ||
115 | echo test sslv3 with both client and server authentication | |
116 | %SSL_TEST% -ssl3 -server_auth -client_auth | |
117 | if errorlevel 1 goto done | |
118 | ||
119 | echo test sslv2/sslv3 | |
120 | ssltest | |
121 | if errorlevel 1 goto done | |
122 | ||
123 | echo test sslv2/sslv3 with server authentication | |
124 | %SSL_TEST% -server_auth | |
125 | if errorlevel 1 goto done | |
126 | ||
127 | echo test sslv2/sslv3 with client authentication | |
128 | %SSL_TEST% -client_auth | |
129 | if errorlevel 1 goto done | |
130 | ||
131 | echo test sslv2/sslv3 with both client and server authentication | |
132 | %SSL_TEST% -server_auth -client_auth | |
133 | if errorlevel 1 goto done | |
134 | ||
135 | echo test sslv2 via BIO pair | |
136 | ssltest -bio_pair -ssl2 | |
137 | if errorlevel 1 goto done | |
138 | ||
139 | echo test sslv2/sslv3 with 1024 bit DHE via BIO pair | |
140 | ssltest -bio_pair -dhe1024dsa -v | |
141 | if errorlevel 1 goto done | |
142 | ||
143 | echo test sslv2 with server authentication via BIO pair | |
144 | %SSL_TEST% -bio_pair -ssl2 -server_auth | |
145 | if errorlevel 1 goto done | |
146 | ||
147 | echo test sslv2 with client authentication via BIO pair | |
148 | %SSL_TEST% -bio_pair -ssl2 -client_auth | |
149 | if errorlevel 1 goto done | |
150 | ||
151 | echo test sslv2 with both client and server authentication via BIO pair | |
152 | %SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth | |
153 | if errorlevel 1 goto done | |
154 | ||
155 | echo test sslv3 via BIO pair | |
156 | ssltest -bio_pair -ssl3 | |
157 | if errorlevel 1 goto done | |
158 | ||
159 | echo test sslv3 with server authentication via BIO pair | |
160 | %SSL_TEST% -bio_pair -ssl3 -server_auth | |
161 | if errorlevel 1 goto done | |
162 | ||
163 | echo test sslv3 with client authentication via BIO pair | |
164 | %SSL_TEST% -bio_pair -ssl3 -client_auth | |
165 | if errorlevel 1 goto done | |
166 | ||
167 | echo test sslv3 with both client and server authentication via BIO pair | |
168 | %SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth | |
169 | if errorlevel 1 goto done | |
170 | ||
171 | echo test sslv2/sslv3 via BIO pair | |
172 | ssltest -bio_pair | |
173 | if errorlevel 1 goto done | |
174 | ||
175 | echo test sslv2/sslv3 with server authentication | |
176 | %SSL_TEST% -bio_pair -server_auth | |
177 | if errorlevel 1 goto done | |
178 | ||
179 | echo test sslv2/sslv3 with client authentication via BIO pair | |
180 | %SSL_TEST% -bio_pair -client_auth | |
181 | if errorlevel 1 goto done | |
182 | ||
183 | echo test sslv2/sslv3 with both client and server authentication via BIO pair | |
184 | %SSL_TEST% -bio_pair -server_auth -client_auth | |
185 | if errorlevel 1 goto done | |
186 | ||
187 | del cert.tmp | |
188 | ||
189 | echo passed all tests | |
190 | goto end | |
191 | :done | |
192 | echo problems..... | |
193 | :end | |
194 | PATH=%opath% | |
0 | @echo off | |
1 | ||
2 | set test=..\ms | |
3 | set opath=%PATH% | |
4 | PATH=..\ms;%PATH% | |
5 | set OPENSSL_CONF=..\apps\openssl.cnf | |
6 | ||
7 | rem run this from inside the bin directory | |
8 | ||
9 | echo rsa_test | |
10 | rsa_test | |
11 | if errorlevel 1 goto done | |
12 | ||
13 | echo destest | |
14 | destest | |
15 | if errorlevel 1 goto done | |
16 | ||
17 | echo ideatest | |
18 | ideatest | |
19 | if errorlevel 1 goto done | |
20 | ||
21 | echo bftest | |
22 | bftest | |
23 | if errorlevel 1 goto done | |
24 | ||
25 | echo shatest | |
26 | shatest | |
27 | if errorlevel 1 goto done | |
28 | ||
29 | echo sha1test | |
30 | sha1test | |
31 | if errorlevel 1 goto done | |
32 | ||
33 | echo md5test | |
34 | md5test | |
35 | if errorlevel 1 goto done | |
36 | ||
37 | echo md2test | |
38 | md2test | |
39 | if errorlevel 1 goto done | |
40 | ||
41 | echo rc2test | |
42 | rc2test | |
43 | if errorlevel 1 goto done | |
44 | ||
45 | echo rc4test | |
46 | rc4test | |
47 | if errorlevel 1 goto done | |
48 | ||
49 | echo randtest | |
50 | randtest | |
51 | if errorlevel 1 goto done | |
52 | ||
53 | echo dhtest | |
54 | dhtest | |
55 | if errorlevel 1 goto done | |
56 | ||
57 | echo exptest | |
58 | exptest | |
59 | if errorlevel 1 goto done | |
60 | ||
61 | echo dsatest | |
62 | dsatest | |
63 | if errorlevel 1 goto done | |
64 | ||
65 | echo ectest | |
66 | ectest | |
67 | if errorlevel 1 goto done | |
68 | ||
69 | echo testenc | |
70 | call %test%\testenc openssl | |
71 | if errorlevel 1 goto done | |
72 | ||
73 | echo testpem | |
74 | call %test%\testpem openssl | |
75 | if errorlevel 1 goto done | |
76 | ||
77 | echo testss | |
78 | call %test%\testss openssl | |
79 | if errorlevel 1 goto done | |
80 | ||
81 | set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss | |
82 | ||
83 | echo test sslv2 | |
84 | ssltest -ssl2 | |
85 | if errorlevel 1 goto done | |
86 | ||
87 | echo test sslv2 with server authentication | |
88 | %SSL_TEST% -ssl2 -server_auth | |
89 | if errorlevel 1 goto done | |
90 | ||
91 | echo test sslv2 with client authentication | |
92 | %SSL_TEST% -ssl2 -client_auth | |
93 | if errorlevel 1 goto done | |
94 | ||
95 | echo test sslv2 with both client and server authentication | |
96 | %SSL_TEST% -ssl2 -server_auth -client_auth | |
97 | if errorlevel 1 goto done | |
98 | ||
99 | echo test sslv3 | |
100 | ssltest -ssl3 | |
101 | if errorlevel 1 goto done | |
102 | ||
103 | echo test sslv3 with server authentication | |
104 | %SSL_TEST% -ssl3 -server_auth | |
105 | if errorlevel 1 goto done | |
106 | ||
107 | echo test sslv3 with client authentication | |
108 | %SSL_TEST% -ssl3 -client_auth | |
109 | if errorlevel 1 goto done | |
110 | ||
111 | echo test sslv3 with both client and server authentication | |
112 | %SSL_TEST% -ssl3 -server_auth -client_auth | |
113 | if errorlevel 1 goto done | |
114 | ||
115 | echo test sslv2/sslv3 | |
116 | ssltest | |
117 | if errorlevel 1 goto done | |
118 | ||
119 | echo test sslv2/sslv3 with server authentication | |
120 | %SSL_TEST% -server_auth | |
121 | if errorlevel 1 goto done | |
122 | ||
123 | echo test sslv2/sslv3 with client authentication | |
124 | %SSL_TEST% -client_auth | |
125 | if errorlevel 1 goto done | |
126 | ||
127 | echo test sslv2/sslv3 with both client and server authentication | |
128 | %SSL_TEST% -server_auth -client_auth | |
129 | if errorlevel 1 goto done | |
130 | ||
131 | echo test sslv2 via BIO pair | |
132 | ssltest -bio_pair -ssl2 | |
133 | if errorlevel 1 goto done | |
134 | ||
135 | echo test sslv2/sslv3 with 1024 bit DHE via BIO pair | |
136 | ssltest -bio_pair -dhe1024dsa -v | |
137 | if errorlevel 1 goto done | |
138 | ||
139 | echo test sslv2 with server authentication via BIO pair | |
140 | %SSL_TEST% -bio_pair -ssl2 -server_auth | |
141 | if errorlevel 1 goto done | |
142 | ||
143 | echo test sslv2 with client authentication via BIO pair | |
144 | %SSL_TEST% -bio_pair -ssl2 -client_auth | |
145 | if errorlevel 1 goto done | |
146 | ||
147 | echo test sslv2 with both client and server authentication via BIO pair | |
148 | %SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth | |
149 | if errorlevel 1 goto done | |
150 | ||
151 | echo test sslv3 via BIO pair | |
152 | ssltest -bio_pair -ssl3 | |
153 | if errorlevel 1 goto done | |
154 | ||
155 | echo test sslv3 with server authentication via BIO pair | |
156 | %SSL_TEST% -bio_pair -ssl3 -server_auth | |
157 | if errorlevel 1 goto done | |
158 | ||
159 | echo test sslv3 with client authentication via BIO pair | |
160 | %SSL_TEST% -bio_pair -ssl3 -client_auth | |
161 | if errorlevel 1 goto done | |
162 | ||
163 | echo test sslv3 with both client and server authentication via BIO pair | |
164 | %SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth | |
165 | if errorlevel 1 goto done | |
166 | ||
167 | echo test sslv2/sslv3 via BIO pair | |
168 | ssltest -bio_pair | |
169 | if errorlevel 1 goto done | |
170 | ||
171 | echo test sslv2/sslv3 with server authentication | |
172 | %SSL_TEST% -bio_pair -server_auth | |
173 | if errorlevel 1 goto done | |
174 | ||
175 | echo test sslv2/sslv3 with client authentication via BIO pair | |
176 | %SSL_TEST% -bio_pair -client_auth | |
177 | if errorlevel 1 goto done | |
178 | ||
179 | echo test sslv2/sslv3 with both client and server authentication via BIO pair | |
180 | %SSL_TEST% -bio_pair -server_auth -client_auth | |
181 | if errorlevel 1 goto done | |
182 | ||
183 | echo passed all tests | |
184 | goto end | |
185 | :done | |
186 | echo problems..... | |
187 | :end | |
188 | PATH=%opath% |