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