1 $! TPKCS7.COM -- Tests pkcs7 keys
4 $ if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $ exe_dir := sys$disk:[-.'__arch'.exe.apps]
7 $ cmd := mcr 'exe_dir'openssl pkcs7
10 $ if p1 .nes. "" then t = p1
12 $ write sys$output "testing PKCS7 conversions"
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.*;*
18 $ write sys$output "p -> d"
19 $ 'cmd' -in fff.p -inform p -outform d -out f.d
20 $ if $severity .ne. 1 then exit 3
21 $ write sys$output "p -> p"
22 $ 'cmd' -in fff.p -inform p -outform p -out f.p
23 $ if $severity .ne. 1 then exit 3
25 $ write sys$output "d -> d"
26 $ 'cmd' -in f.d -inform d -outform d -out ff.d1
27 $ if $severity .ne. 1 then exit 3
28 $ write sys$output "p -> d"
29 $ 'cmd' -in f.p -inform p -outform d -out ff.d3
30 $ if $severity .ne. 1 then exit 3
33 $ write sys$output "d -> p"
34 $ 'cmd' -in f.d -inform d -outform p -out ff.p1
35 $ if $severity .ne. 1 then exit 3
36 $ write sys$output "p -> p"
37 $ 'cmd' -in f.p -inform p -outform p -out ff.p3
38 $ if $severity .ne. 1 then exit 3
40 $ backup/compare fff.p f.p
41 $ if $severity .ne. 1 then exit 3
42 $ backup/compare fff.p ff.p1
43 $ if $severity .ne. 1 then exit 3
44 $ backup/compare fff.p ff.p3
45 $ if $severity .ne. 1 then exit 3
47 $ backup/compare f.p ff.p1
48 $ if $severity .ne. 1 then exit 3
49 $ backup/compare f.p ff.p3
50 $ if $severity .ne. 1 then exit 3
52 $ delete f.*;*,ff.*;*,fff.*;*