diff options
author | beck <> | 2000-12-15 02:58:47 +0000 |
---|---|---|
committer | beck <> | 2000-12-15 02:58:47 +0000 |
commit | 9200bb13d15da4b2a23e6bc92c20e95b74aa2113 (patch) | |
tree | 5c52d628ec1e34be76e7ef2a4235d248b7c44d24 /src/lib/libssl/test/tests.com | |
parent | e131d25072e3d4197ba4b9bcc0d1b27d34d6488d (diff) | |
download | openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.gz openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.tar.bz2 openbsd-9200bb13d15da4b2a23e6bc92c20e95b74aa2113.zip |
openssl-engine-0.9.6 merge
Diffstat (limited to 'src/lib/libssl/test/tests.com')
-rw-r--r-- | src/lib/libssl/test/tests.com | 96 |
1 files changed, 61 insertions, 35 deletions
diff --git a/src/lib/libssl/test/tests.com b/src/lib/libssl/test/tests.com index 040dafab8d..df8f46e75d 100644 --- a/src/lib/libssl/test/tests.com +++ b/src/lib/libssl/test/tests.com | |||
@@ -19,11 +19,12 @@ $ then | |||
19 | $ tests = p1 | 19 | $ tests = p1 |
20 | $ else | 20 | $ else |
21 | $ tests := - | 21 | $ tests := - |
22 | test_des,test_idea,test_sha,test_md5,test_hmac,test_md2,test_mdc2,- | 22 | test_des,test_idea,test_sha,test_md4,test_md5,test_hmac,- |
23 | test_md2,test_mdc2,- | ||
23 | test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,- | 24 | test_rmd,test_rc2,test_rc4,test_rc5,test_bf,test_cast,- |
24 | test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,- | 25 | test_rand,test_bn,test_enc,test_x509,test_rsa,test_crl,test_sid,- |
25 | test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- | 26 | test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- |
26 | test_ss,test_ssl,test_ca | 27 | test_ss,test_ca,test_ssl |
27 | $ endif | 28 | $ endif |
28 | $ tests = f$edit(tests,"COLLAPSE") | 29 | $ tests = f$edit(tests,"COLLAPSE") |
29 | $ | 30 | $ |
@@ -35,6 +36,7 @@ $ SHA1TEST := sha1test | |||
35 | $ MDC2TEST := mdc2test | 36 | $ MDC2TEST := mdc2test |
36 | $ RMDTEST := rmdtest | 37 | $ RMDTEST := rmdtest |
37 | $ MD2TEST := md2test | 38 | $ MD2TEST := md2test |
39 | $ MD4TEST := md4test | ||
38 | $ MD5TEST := md5test | 40 | $ MD5TEST := md5test |
39 | $ HMACTEST := hmactest | 41 | $ HMACTEST := hmactest |
40 | $ RC2TEST := rc2test | 42 | $ RC2TEST := rc2test |
@@ -55,54 +57,58 @@ $ loop_tests: | |||
55 | $ tests_e = f$element(tests_i,",",tests) | 57 | $ tests_e = f$element(tests_i,",",tests) |
56 | $ tests_i = tests_i + 1 | 58 | $ tests_i = tests_i + 1 |
57 | $ if tests_e .eqs. "," then goto exit | 59 | $ if tests_e .eqs. "," then goto exit |
58 | $ goto 'tests_e' | 60 | $ gosub 'tests_e' |
61 | $ goto loop_tests | ||
59 | $ | 62 | $ |
60 | $ test_des: | 63 | $ test_des: |
61 | $ mcr 'texe_dir''destest' | 64 | $ mcr 'texe_dir''destest' |
62 | $ goto loop_tests | 65 | $ return |
63 | $ test_idea: | 66 | $ test_idea: |
64 | $ mcr 'texe_dir''ideatest' | 67 | $ mcr 'texe_dir''ideatest' |
65 | $ goto loop_tests | 68 | $ return |
66 | $ test_sha: | 69 | $ test_sha: |
67 | $ mcr 'texe_dir''shatest' | 70 | $ mcr 'texe_dir''shatest' |
68 | $ mcr 'texe_dir''sha1test' | 71 | $ mcr 'texe_dir''sha1test' |
69 | $ goto loop_tests | 72 | $ return |
70 | $ test_mdc2: | 73 | $ test_mdc2: |
71 | $ mcr 'texe_dir''mdc2test' | 74 | $ mcr 'texe_dir''mdc2test' |
72 | $ goto loop_tests | 75 | $ return |
73 | $ test_md5: | 76 | $ test_md5: |
74 | $ mcr 'texe_dir''md5test' | 77 | $ mcr 'texe_dir''md5test' |
75 | $ goto loop_tests | 78 | $ return |
79 | $ test_md4: | ||
80 | $ mcr 'texe_dir''md4test' | ||
81 | $ return | ||
76 | $ test_hmac: | 82 | $ test_hmac: |
77 | $ mcr 'texe_dir''hmactest' | 83 | $ mcr 'texe_dir''hmactest' |
78 | $ goto loop_tests | 84 | $ return |
79 | $ test_md2: | 85 | $ test_md2: |
80 | $ mcr 'texe_dir''md2test' | 86 | $ mcr 'texe_dir''md2test' |
81 | $ goto loop_tests | 87 | $ return |
82 | $ test_rmd: | 88 | $ test_rmd: |
83 | $ mcr 'texe_dir''rmdtest' | 89 | $ mcr 'texe_dir''rmdtest' |
84 | $ goto loop_tests | 90 | $ return |
85 | $ test_bf: | 91 | $ test_bf: |
86 | $ mcr 'texe_dir''bftest' | 92 | $ mcr 'texe_dir''bftest' |
87 | $ goto loop_tests | 93 | $ return |
88 | $ test_cast: | 94 | $ test_cast: |
89 | $ mcr 'texe_dir''casttest' | 95 | $ mcr 'texe_dir''casttest' |
90 | $ goto loop_tests | 96 | $ return |
91 | $ test_rc2: | 97 | $ test_rc2: |
92 | $ mcr 'texe_dir''rc2test' | 98 | $ mcr 'texe_dir''rc2test' |
93 | $ goto loop_tests | 99 | $ return |
94 | $ test_rc4: | 100 | $ test_rc4: |
95 | $ mcr 'texe_dir''rc4test' | 101 | $ mcr 'texe_dir''rc4test' |
96 | $ goto loop_tests | 102 | $ return |
97 | $ test_rc5: | 103 | $ test_rc5: |
98 | $ mcr 'texe_dir''rc5test' | 104 | $ mcr 'texe_dir''rc5test' |
99 | $ goto loop_tests | 105 | $ return |
100 | $ test_rand: | 106 | $ test_rand: |
101 | $ mcr 'texe_dir''randtest' | 107 | $ mcr 'texe_dir''randtest' |
102 | $ goto loop_tests | 108 | $ return |
103 | $ test_enc: | 109 | $ test_enc: |
104 | $ @testenc.com | 110 | $ @testenc.com |
105 | $ goto loop_tests | 111 | $ return |
106 | $ test_x509: | 112 | $ test_x509: |
107 | $ define sys$error nla0: | 113 | $ define sys$error nla0: |
108 | $ write sys$output "test normal x509v1 certificate" | 114 | $ write sys$output "test normal x509v1 certificate" |
@@ -112,35 +118,35 @@ $ @tx509.com v3-cert1.pem | |||
112 | $ write sys$output "test second x509v3 certificate" | 118 | $ write sys$output "test second x509v3 certificate" |
113 | $ @tx509.com v3-cert2.pem | 119 | $ @tx509.com v3-cert2.pem |
114 | $ deassign sys$error | 120 | $ deassign sys$error |
115 | $ goto loop_tests | 121 | $ return |
116 | $ test_rsa: | 122 | $ test_rsa: |
117 | $ define sys$error nla0: | 123 | $ define sys$error nla0: |
118 | $ @trsa.com | 124 | $ @trsa.com |
119 | $ deassign sys$error | 125 | $ deassign sys$error |
120 | $ mcr 'texe_dir''rsatest' | 126 | $ mcr 'texe_dir''rsatest' |
121 | $ goto loop_tests | 127 | $ return |
122 | $ test_crl: | 128 | $ test_crl: |
123 | $ define sys$error nla0: | 129 | $ define sys$error nla0: |
124 | $ @tcrl.com | 130 | $ @tcrl.com |
125 | $ deassign sys$error | 131 | $ deassign sys$error |
126 | $ goto loop_tests | 132 | $ return |
127 | $ test_sid: | 133 | $ test_sid: |
128 | $ define sys$error nla0: | 134 | $ define sys$error nla0: |
129 | $ @tsid.com | 135 | $ @tsid.com |
130 | $ deassign sys$error | 136 | $ deassign sys$error |
131 | $ goto loop_tests | 137 | $ return |
132 | $ test_req: | 138 | $ test_req: |
133 | $ define sys$error nla0: | 139 | $ define sys$error nla0: |
134 | $ @treq.com | 140 | $ @treq.com |
135 | $ @treq.com testreq2.pem | 141 | $ @treq.com testreq2.pem |
136 | $ deassign sys$error | 142 | $ deassign sys$error |
137 | $ goto loop_tests | 143 | $ return |
138 | $ test_pkcs7: | 144 | $ test_pkcs7: |
139 | $ define sys$error nla0: | 145 | $ define sys$error nla0: |
140 | $ @tpkcs7.com | 146 | $ @tpkcs7.com |
141 | $ @tpkcs7d.com | 147 | $ @tpkcs7d.com |
142 | $ deassign sys$error | 148 | $ deassign sys$error |
143 | $ goto loop_tests | 149 | $ return |
144 | $ test_bn: | 150 | $ test_bn: |
145 | $ write sys$output "starting big number library test, could take a while..." | 151 | $ write sys$output "starting big number library test, could take a while..." |
146 | $ create bntest-vms.fdl | 152 | $ create bntest-vms.fdl |
@@ -164,36 +170,56 @@ $ write sys$output "-- through sh or bash to verify that the bignum operations w | |||
164 | $ write sys$output "" | 170 | $ write sys$output "" |
165 | $ write sys$output "test a^b%c implementations" | 171 | $ write sys$output "test a^b%c implementations" |
166 | $ mcr 'texe_dir''exptest' | 172 | $ mcr 'texe_dir''exptest' |
167 | $ goto loop_tests | 173 | $ return |
168 | $ test_verify: | 174 | $ test_verify: |
169 | $ write sys$output "The following command should have some OK's and some failures" | 175 | $ write sys$output "The following command should have some OK's and some failures" |
170 | $ write sys$output "There are definitly a few expired certificates" | 176 | $ write sys$output "There are definitly a few expired certificates" |
171 | $ @tverify.com | 177 | $ @tverify.com |
172 | $ goto loop_tests | 178 | $ return |
173 | $ test_dh: | 179 | $ test_dh: |
174 | $ write sys$output "Generate a set of DH parameters" | 180 | $ write sys$output "Generate a set of DH parameters" |
175 | $ mcr 'texe_dir''dhtest' | 181 | $ mcr 'texe_dir''dhtest' |
176 | $ goto loop_tests | 182 | $ return |
177 | $ test_dsa: | 183 | $ test_dsa: |
178 | $ write sys$output "Generate a set of DSA parameters" | 184 | $ write sys$output "Generate a set of DSA parameters" |
179 | $ mcr 'texe_dir''dsatest' | 185 | $ mcr 'texe_dir''dsatest' |
180 | $ goto loop_tests | 186 | $ return |
181 | $ test_gen: | 187 | $ test_gen: |
182 | $ write sys$output "Generate and verify a certificate request" | 188 | $ write sys$output "Generate and verify a certificate request" |
183 | $ @testgen.com | 189 | $ @testgen.com |
184 | $ goto loop_tests | 190 | $ return |
191 | $ maybe_test_ss: | ||
192 | $ testss_RDT = f$cvtime(f$file_attributes("testss.com","RDT")) | ||
193 | $ if f$cvtime(f$file_attributes("keyU.ss","RDT")) .les. testss_RDT then - | ||
194 | goto test_ss | ||
195 | $ if f$cvtime(f$file_attributes("certU.ss","RDT")) .les. testss_RDT then - | ||
196 | goto test_ss | ||
197 | $ if f$cvtime(f$file_attributes("certCA.ss","RDT")) .les. testss_RDT then - | ||
198 | goto test_ss | ||
199 | $ return | ||
185 | $ test_ss: | 200 | $ test_ss: |
186 | $ write sys$output "Generate and certify a test certificate" | 201 | $ write sys$output "Generate and certify a test certificate" |
187 | $ @testss.com | 202 | $ @testss.com |
188 | $ goto loop_tests | 203 | $ return |
189 | $ test_ssl: | 204 | $ test_ssl: |
190 | $ write sys$output "test SSL protocol" | 205 | $ write sys$output "test SSL protocol" |
191 | $ @testssl.com | 206 | $ gosub maybe_test_ss |
192 | $ goto loop_tests | 207 | $ @testssl.com keyU.ss certU.ss certCA.ss |
208 | $ return | ||
193 | $ test_ca: | 209 | $ test_ca: |
194 | $ write sys$output "Generate and certify a test certificate via the 'ca' program" | 210 | $ set noon |
195 | $ @testca.com | 211 | $ define/user sys$output nla0: |
196 | $ goto loop_tests | 212 | $ mcr 'exe_dir'openssl no-rsa |
213 | $ save_severity=$SEVERITY | ||
214 | $ set on | ||
215 | $ if save_severity | ||
216 | $ then | ||
217 | $ write sys$output "skipping CA.com test -- requires RSA" | ||
218 | $ else | ||
219 | $ write sys$output "Generate and certify a test certificate via the 'ca' program" | ||
220 | $ @testca.com | ||
221 | $ endif | ||
222 | $ return | ||
197 | $ | 223 | $ |
198 | $ | 224 | $ |
199 | $ exit: | 225 | $ exit: |