]> git.ipfire.org Git - thirdparty/openssl.git/blob - test/tpkcs7.com
VMS support.
[thirdparty/openssl.git] / test / tpkcs7.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 := testp7.pem
10 $ if p1 .nes. "" then t = p1
11 $
12 $ write sys$output "testing PKCS7 conversions"
13 $ copy 't' fff.p
14 $
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
21 $
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
28 $
29 $
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
36 $
37 $ difference/output=nl: fff.p f.p
38 $ if $severity .ne. 1 then exit 3
39 $ difference/output=nl: fff.p ff.p1
40 $ if $severity .ne. 1 then exit 3
41 $ difference/output=nl: fff.p ff.p3
42 $ if $severity .ne. 1 then exit 3
43 $
44 $ difference/output=nl: f.p ff.p1
45 $ if $severity .ne. 1 then exit 3
46 $ difference/output=nl: f.p ff.p3
47 $ if $severity .ne. 1 then exit 3
48 $
49 $ delete f.*;*,ff.*;*,fff.*;*