blob: 2e6ab2814d8f91e3e88123bed15f0d57ccd63eb0 [file] [log] [blame]
Ulf Möller7d7d2cb1999-05-13 11:37:32 +00001$! TCRL.COM -- Tests crl 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 crl
8$
9$ t := testcrl.pem
10$ if p1 .nes. "" then t = p1
11$
12$ write sys$output "testing CRL conversions"
Richard Levitte921c9bd2000-02-26 03:59:46 +000013$ 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.*;*
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000016$ copy 't' fff.p
17$
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 -> t"
22$! 'cmd' -in fff.p -inform p -outform t -out f.t
23$! if $severity .ne. 1 then exit 3
24$ write sys$output "p -> p"
25$ 'cmd' -in fff.p -inform p -outform p -out f.p
26$ if $severity .ne. 1 then exit 3
27$
28$ write sys$output "d -> d"
29$ 'cmd' -in f.d -inform d -outform d -out ff.d1
30$ if $severity .ne. 1 then exit 3
31$! write sys$output "t -> d"
32$! 'cmd' -in f.t -inform t -outform d -out ff.d2
33$! if $severity .ne. 1 then exit 3
34$ write sys$output "p -> d"
35$ 'cmd' -in f.p -inform p -outform d -out ff.d3
36$ if $severity .ne. 1 then exit 3
37$
38$! write sys$output "d -> t"
39$! 'cmd' -in f.d -inform d -outform t -out ff.t1
40$! if $severity .ne. 1 then exit 3
41$! write sys$output "t -> t"
42$! 'cmd' -in f.t -inform t -outform t -out ff.t2
43$! if $severity .ne. 1 then exit 3
44$! write sys$output "p -> t"
45$! 'cmd' -in f.p -inform p -outform t -out ff.t3
46$! if $severity .ne. 1 then exit 3
47$
48$ write sys$output "d -> p"
49$ 'cmd' -in f.d -inform d -outform p -out ff.p1
50$ if $severity .ne. 1 then exit 3
51$! write sys$output "t -> p"
52$! 'cmd' -in f.t -inform t -outform p -out ff.p2
53$! if $severity .ne. 1 then exit 3
54$ write sys$output "p -> p"
55$ 'cmd' -in f.p -inform p -outform p -out ff.p3
56$ if $severity .ne. 1 then exit 3
57$
Richard Levitte13427e41999-11-12 01:46:50 +000058$ backup/compare fff.p f.p
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000059$ if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000060$ backup/compare fff.p ff.p1
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000061$ if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000062$! backup/compare fff.p ff.p2
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000063$! if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000064$ backup/compare fff.p ff.p3
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000065$ if $severity .ne. 1 then exit 3
66$
Richard Levitte13427e41999-11-12 01:46:50 +000067$! backup/compare f.t ff.t1
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000068$! if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000069$! backup/compare f.t ff.t2
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000070$! if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000071$! backup/compare f.t ff.t3
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000072$! if $severity .ne. 1 then exit 3
73$
Richard Levitte13427e41999-11-12 01:46:50 +000074$ backup/compare f.p ff.p1
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000075$ if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000076$! backup/compare f.p ff.p2
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000077$! if $severity .ne. 1 then exit 3
Richard Levitte13427e41999-11-12 01:46:50 +000078$ backup/compare f.p ff.p3
Ulf Möller7d7d2cb1999-05-13 11:37:32 +000079$ if $severity .ne. 1 then exit 3
80$
81$ delete f.*;*,ff.*;*,fff.*;*