1 $! TPKCS7.COM -- Tests pkcs7 keys
4 $ if f$getsyi("cpu") .ge. 128 then -
5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
6 $ if __arch .eqs. "" then __arch = "UNK"
8 $ if (p2 .eqs. "64") then __arch = __arch+ "_64"
10 $ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
12 $ cmd = "mcr ''exe_dir'openssl pkcs7"
15 $ if p1 .nes. "" then t = p1
17 $ write sys$output "testing PKCS7 conversions (2)"
18 $ if f$search("fff.*") .nes "" then delete fff.*;*
19 $ if f$search("ff.*") .nes "" then delete ff.*;*
20 $ if f$search("f.*") .nes "" then delete f.*;*
21 $ convert/fdl=sys$input: 't' fff.p
25 $ write sys$output "p -> d"
26 $ 'cmd' -in fff.p -inform p -outform d -out f.d
27 $ if $severity .ne. 1 then exit 3
28 $ write sys$output "p -> p"
29 $ 'cmd' -in fff.p -inform p -outform p -out f.p
30 $ if $severity .ne. 1 then exit 3
32 $ write sys$output "d -> d"
33 $ 'cmd' -in f.d -inform d -outform d -out ff.d1
34 $ if $severity .ne. 1 then exit 3
35 $ write sys$output "p -> d"
36 $ 'cmd' -in f.p -inform p -outform d -out ff.d3
37 $ if $severity .ne. 1 then exit 3
40 $ write sys$output "d -> p"
41 $ 'cmd' -in f.d -inform d -outform p -out ff.p1
42 $ if $severity .ne. 1 then exit 3
43 $ write sys$output "p -> p"
44 $ 'cmd' -in f.p -inform p -outform p -out 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.*;*