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 (2)"
15 $ write sys$output "p -> d"
16 $ 'cmd' -in fff.p -inform p -outform d -out f.d
17 $ if $severity .ne. 1 then exit 3
18 $ write sys$output "p -> p"
19 $ 'cmd' -in fff.p -inform p -outform p -out f.p
20 $ if $severity .ne. 1 then exit 3
22 $ write sys$output "d -> d"
23 $ 'cmd' -in f.d -inform d -outform d -out ff.d1
24 $ if $severity .ne. 1 then exit 3
25 $ write sys$output "p -> d"
26 $ 'cmd' -in f.p -inform p -outform d -out ff.d3
27 $ if $severity .ne. 1 then exit 3
30 $ write sys$output "d -> p"
31 $ 'cmd' -in f.d -inform d -outform p -out ff.p1
32 $ if $severity .ne. 1 then exit 3
33 $ write sys$output "p -> p"
34 $ 'cmd' -in f.p -inform p -outform p -out ff.p3
35 $ if $severity .ne. 1 then exit 3
37 $ difference/output=nl: f.p ff.p1
38 $ if $severity .ne. 1 then exit 3
39 $ difference/output=nl: f.p ff.p3
40 $ if $severity .ne. 1 then exit 3
42 $ delete f.*;*,ff.*;*,fff.*;*