Add OpenSSL 0.9.7e.
[dragonfly.git] / crypto / openssl-0.9.7e / test / tpkcs7d.com
1 $! TPKCS7.COM  --  Tests pkcs7 keys
2 $
3 $       __arch := VAX
4 $       if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $       exe_dir := sys$disk:[-.'__arch'.exe.apps]
6 $
7 $       cmd := mcr 'exe_dir'openssl pkcs7
8 $
9 $       t := pkcs7-1.pem
10 $       if p1 .nes. "" then t = p1
11 $
12 $       write sys$output "testing PKCS7 conversions (2)"
13 $       if f$search("fff.*") .nes "" then delete fff.*;*
14 $       if f$search("ff.*") .nes "" then delete ff.*;*
15 $       if f$search("f.*") .nes "" then delete f.*;*
16 $       convert/fdl=sys$input: 't' fff.p
17 RECORD
18         FORMAT STREAM_LF
19 $
20 $       write sys$output "p -> d"
21 $       'cmd' -in fff.p -inform p -outform d -out f.d
22 $       if $severity .ne. 1 then exit 3
23 $       write sys$output "p -> p"
24 $       'cmd' -in fff.p -inform p -outform p -out f.p
25 $       if $severity .ne. 1 then exit 3
26 $
27 $       write sys$output "d -> d"
28 $       'cmd' -in f.d -inform d -outform d -out ff.d1
29 $       if $severity .ne. 1 then exit 3
30 $       write sys$output "p -> d"
31 $       'cmd' -in f.p -inform p -outform d -out ff.d3
32 $       if $severity .ne. 1 then exit 3
33 $
34 $
35 $       write sys$output "d -> p"
36 $       'cmd' -in f.d -inform d -outform p -out ff.p1
37 $       if $severity .ne. 1 then exit 3
38 $       write sys$output "p -> p"
39 $       'cmd' -in f.p -inform p -outform p -out ff.p3
40 $       if $severity .ne. 1 then exit 3
41 $
42 $       backup/compare f.p ff.p1
43 $       if $severity .ne. 1 then exit 3
44 $       backup/compare f.p ff.p3
45 $       if $severity .ne. 1 then exit 3
46 $
47 $       delete f.*;*,ff.*;*,fff.*;*